mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 08:17:37 +00:00
rootfs: add '-rm' to delete intermediate container
If we set env USE_DOCKER true, we will use container as development environment. After docker run command, this temporary container would be no use. we could add -rm flag to automatically delete intermediate container. Fixes: #115 Signed-off-by: Penny Zheng <penny.zheng@arm.com>
This commit is contained in:
parent
bdb776d073
commit
e86380aab7
@ -98,6 +98,7 @@ if [ -n "${USE_DOCKER}" ] ; then
|
||||
# In case Clear Containers Runtime is installed we dont want to hit issue:
|
||||
#https://github.com/clearcontainers/runtime/issues/828
|
||||
docker run \
|
||||
--rm \
|
||||
--runtime runc \
|
||||
--privileged \
|
||||
--env IMG_SIZE="${IMG_SIZE}" \
|
||||
|
@ -212,6 +212,7 @@ if [ -n "${USE_DOCKER}" ] ; then
|
||||
# In case Clear Containers Runtime is installed we dont want to hit issue:
|
||||
#https://github.com/clearcontainers/runtime/issues/828
|
||||
docker run \
|
||||
--rm \
|
||||
--runtime runc \
|
||||
--env https_proxy="${https_proxy}" \
|
||||
--env http_proxy="${http_proxy}" \
|
||||
|
Loading…
Reference in New Issue
Block a user