Docking Alignment Does Not Save Changes

Yes, you are right, they have many such topics. I did not find a solution to my problem. So give me a chance!

I am launching a docker container without specific volumes. Therefore, I want to make such changes as:

docker commit 3a09b2588478 myfantasticimage docker save myfantasticimage > /tmp/fantasticimagecommit.tar 

Now I transfer the image using scp to another docker host by doing

 docker load < /tmp/fantasticimagecommit.tar 

The image is launched, and I do not see the changes that I made before it was made. What is the problem. According to the Dockerfile, volumes are not defined.

Thanks!

Update : I found volumes through docker inspect -command

 "VolumesRW": { "/var/lib/": true, "/var/log/": true, "/var/www/": true } 

What could be the workaround? I want to make a backup every 6 hours of the container, so I can restore it to the same or another computer without any effort.

Thanks for the help!

+6
source share
1 answer

"docker commit" cannot save mount volume data ~ You must docker cp files in a container ~

0
source

Source: https://habr.com/ru/post/983286/


All Articles