What is the location of the docker image files on OS/X?

There are several questions regarding how to view docker images on local machine including I can't find my Docker image after building it

The docker images command does report that an image was successfully created:

  • Api command for tree structure of docker images
  • Nightwatch inside Docker only works with Phantom
  • docker compose won't mount the external volume
  • IP address and port of the host where Docker is running on?
  • How to install docker in Jenkins without root privileges?
  • How persistent are docker data-only containers
  • $docker images
    REPOSITORY                                              TAG                 IMAGE ID            CREATED             SIZE
    caffeonspark                                            cpu                 bd347271dc01        28 minutes ago      5.28 GB

    This question is about the physical locations of the docker files – to do operations like copying/backups etc. How would the paths be found on OS/X?

  • Jenkins is not waiting for Docker command to finish
  • docker cp not working
  • Docker Compose - Mount 2 volumes with the same path to a container
  • curl_slist_free_all() causes segfault on GKE w/ Debian 8.7
  • How to set host in nginx configuration running inside docker?
  • Allow a container running via docker-machine to connect with Mysql or XDEBUG port on parent OSX system without using an OSX DHCP assigned ip address?
  • One Solution collect form web for “What is the location of the docker image files on OS/X?”

    On Mac, Docker images are stored within the VM. See this Question.

    On Linux, Docker images are stored in /var/lib/docker, so backing up that directory should be sufficient.

    I don’t think you should be copying images from that directory. The normal way to share a built image between machines is with Docker Hub or with a private Docker registry. If you want to share images that are not published to a registry, you can simply share the Dockerfile.

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