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, api

Introduction to Swagger

The best APIs are built using the Swagger tool, This article introduces how to use docker to execute swagger-ui and editor, let us create a testable API file. In the docker environment, we can easily start the swagger editor and user interface.

docker

How to update or rebuild D-Laravel's FPM Image

Sometimes, the docker image will undergo some corrections or add more plug-ins, how do we update the image in the computer? It's very simple, use docker pull [use the image], if you want to create your own image is also feasible...

docker

Wenchat about the evolution history of my network

Hear about the evolution of my network. My GCP costs $46.35 per month, and the current free trial balance is $111.05, I've almost spent $300, and I'm about to move back to a self-managed host.