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 ?

  • Docker: how to provide secret information to the container?
  • how to let docker container work with sshuttle?
  • Docker cross compile for ARM without hard-float
  • Deploying Mysql on Mesos using Marathon
  • How to Mount Hugepages inside Docker
  • start multiple docker containers with a single command line shell script (without docker-compose)
  • How to view the namespaces range of a Docker container to choose correct Samba domain member idmap range?
  • getting “cannot find package” trying to build my application in a docker container
  • How do I run Docker on Google Compute Engine?
  • Dockerode : run omxplayer command
  • How can a Docker Container get host's system information(df, ps)?
  • Passing variables as arguments to docker container
  • 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.