migrate docker container

sudo docker ps

Export:
sudo docker export 9a276b8fe557 > /home/vit/pyt.tar

du -sh /home/vit/pyt.tar
963M /home/vit/pyt.tar

du -sh /home/vit/pyt.tar.gz
374M /home/vit/pyt.tar.gz

Import:
cat /tmp/pyt.tar | sudo docker import –

Leave a Reply

Your email address will not be published. Required fields are marked *