by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 7 years ago )

foreword

How to archive the docker image into a tar file and load back the docker image.
We can use docker save and docker load.

Proceed as follows:

1. For example, I have the following images.
save images
2. I want to save the deviny/fpm:7.1.9 image, so I can docker save Execute the following command:
(When 7.1.9 is not specified, there will be all images)
docker save
3. If you want to restore, you can use docker load instruction:
docker load
when we execute docker images Check it out, and you can see that the image is back.

Tags: docker

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


docker laravel

Chatting about D-Laravel's console commands

D-Laravel's console command allows us to quickly understand what he executes. How is it executed if docker-compose is used? Let's see.

polymer,docker

D-Laravel supports index.html by default

D-Laravel's nginx environment settings support index.html by default, simply put Now, besides, D-Laravel can be used to run Laravel's Project, and it can also be used to run other Projects. Currently Apple's WebKit is already in preview for Service-Workers....

laravel docker

About D-Laravel's project mode

If you are a new user, I suggest you use my latest environment phpenv instead. https://github.com/DevinY/phpenv