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 rm $cid
daemontmp=$(docker exec dockerdaemon mktemp -d)
tar -c -C $plugindir . | docker exec -i dockerdaemon tar -x -C $daemontmp