Remove container after export

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2017-01-05 13:41:25 -08:00
parent 37758029fb
commit fd13a2e0a6
No known key found for this signature in database
GPG key ID: F58C5D0A4405ACDB

View file

@ -30,6 +30,8 @@ CONFIGJSON
docker export $cid | tar -x -C $plugindir/rootfs docker export $cid | tar -x -C $plugindir/rootfs
docker rm $cid
daemontmp=$(docker exec dockerdaemon mktemp -d) daemontmp=$(docker exec dockerdaemon mktemp -d)
tar -c -C $plugindir . | docker exec -i dockerdaemon tar -x -C $daemontmp tar -c -C $plugindir . | docker exec -i dockerdaemon tar -x -C $daemontmp