If you inspect regular images then you will get linux paths like: $ docker inspect nginx The configuration and the virtual image to execute linux images are saved in the default Docker root folder. Linux containers are run in a minimal Hyper-V based virtual environment. There are native Windows containers that work similarly to Linux containers. You can kill this session by pressing Ctrl+a, followed by pressing k and y. You can investigate your Docker root directory by creating a shell in the virtual environment: $ screen ~/Library/Containers//Data/vms/0/tty Within the virtual image, the path is the default Docker path /var/lib/docker. Therefore, there are some additional things to know.ĭocker is not natively compatible with macOS, so Hyperkit is used to run a virtual image. In macOS and Windows, Docker runs Linux containers in a virtual environment. MacOS: ~/Library/Containers//Data/vms/0/.Here is an overview for the most used operating systems: The location of Docker files depends on your operating system. The storage location of Docker images and containersĪ Docker container consists of network settings, volumes, and images.
The output contains information about your storage driver and your docker root directory. You can get the basic information about your Docker configuration by executing: $ docker info Additionally, it can be used to start applications quickly by executing a single Docker command.Ĭompanies also are investing more and more effort into improving development in local and remote Docker containers, which comes with a lot of advantages as well. Docker has been widely adopted and is used to run and scale applications in production.