Posted on

Get the Docker Image

There are several ways you can get a docker image.

For example, you can get an image from Docker Hub,

$ docker pull ubuntu:latest

Or you may commit your dev environment on one server and then transfer it to another server, you can choose the tag yourself

$ docker commit c3f279d17e0a ubuntu-dev:201106

Export Image

$ docker save -o ubuntu-dev.tar ubuntu-dev:201106

After this, you may transfer the image to the offline server that you want to install on.

Load Image

Then in the target server, you can load the docker image with

$ docker load -i ubuntu-dev.tar

References

  1. https://blog.csdn.net/wangkai_123456/article/details/78538168
  2. https://github.com/docker/for-win/issues/1042
  3. https://docs.docker.com/engine/reference/commandline/commit/

Leave a Reply

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