Export of locally available Docker image to local file system

Is it possible:

  • export of locally available image to local file system ?
  • import of local file of image to local docker repository, which is not available before the operation ?

  • What is the difference between the size and the virtual size of the docker images?
  • Can't start docker service after updating to 1.12.6-176.1 in OpenSUSE:
  • Can docker-swarm be configured to auto scale containers according to load
  • Elastic beanstalk with Docker Volumes pointing to files
  • Kubernetes save JSON logs to file with escaped quotes. Why?
  • Docker volumes are partitions or subdirectories?
  • How can I expose more than 1 port with Docker?
  • How do I know when my docker mysql container is up and mysql is ready for taking queries?
  • Is CloudFoundry compatible with Docker/CoreOS?
  • Bunyan logger on aws leaks file descriptors
  • How to write commands with multiple lines in Dockerfile while preserving the new lines?
  • Microservices on docker - architecture
  • One Solution collect form web for “Export of locally available Docker image to local file system”

    You can use docker save yournamespace/yourimage:label > image.tar.gz to save your image to a local tar.gz file.

    You can then re-import it and set a new tag pointing to your repository with cat yourimage.tar.gz | docker import - yourrepository:5000/yournamespace/yourimage:label.

    Then you can push it to your local docker repository called repository with a simple docker push yourrepository:5000/yournamespace/yourimage:label.

    EDIT: Keep in mind that volumes are not included in the tar.gz file!

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.