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:

  • MySQL 5.5.44 “native” 32% faster than dockerized MySQL 5.5.44
  • Selenium Only local connections allowed and NoSuchSessionException
  • Requirements.txt error when building Ampcrowd application from Dockerfile
  • docker4mac shared folder speed too slow
  • Update existed docker image and all contains once Dockerfile changed
  • Cannot connect to the Docker daemon. Debian 8 Jessie
  • $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?

  • How to link two docker services in coreos with flannel?
  • Docker Mac Beta and container connecting to host ports?
  • Using docker on Mac. Is it possible to start docker daemon using docker-machine and pass in arguments?
  • Docker Swarm : How to setup multiple containers on same volume
  • Type “geometry” does not exists [duplicate]
  • How to reduce docker image size?
  • 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.