I pulled the image on the Docker for Mac, but the /var/lib/docker directory is missing.

Asked 1 years ago, Updated 1 years ago, 42 views

I am using Docker for Mac. I don't know where to store the image file.

 docker run hello-world

I did. Of course, I don't have a hell0-world image file on hand, so it was pulled.

Unable to find image' hello-world:latest'locally
latest —Pulling from library/hello-world

I checked and found that the image file was stored in /var/lib/docker on various sites, but the docker directory does not exist under /var/lib. Could you tell me where it is?

By the way

 docker info

If you try , you will see the following output:

Containers: 1
 Running—0
 Paused—0
 Stopped—1
Images:1
Server Version: 1.12.6
Storage Driver:aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem:extfs
 Dirs—3
 Dirperm1 Supported—true
Logging Driver: json-file
Cgroup Driver:cgroupfs
Plugins:
 Volume:local
 Network:null bridge overlay host
Swarm:inactive
Runtimes:runc
Default Runtime: runc
security options:seccomp
Kernel Version: 4.4.41-moby
Operating System: Alpine Linux v3.4
OSType:linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.951 GiB
Name—moby
ID: AIWI:PO46:XT4Y:3T4V:DKNZ:AKAH:ALXA:XIF:NZYO:XD5G:FE6O:S4MT
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 22
 Goroutines: 29
 System Time: 2017-01-19T05:27:23.039809683Z
 EventsListeners—1
No Proxy: *.local, 169.254/16
Registry: https://index.docker.io/v1/
WARNING: No kernel memory limit support
Insecure Registries:
 127.0.0.0/8

Inside

Root Dir:/var/lib/docker/aufs

It says , but you cannot access this directory. Or rather, there is no directory called docker. Please let me know if you understand.

macos docker

2022-09-29 22:23

1 Answers

The Docker image file is not stored directly on the macOS file system.

Under User Home Directory:

~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux

contains an image of a virtual machine (Linux) called Docker.qcow2.

The image file is stored on the machine's file system.

Therefore, /var/lib/docker/aufs is the path within that virtual machine.


2022-09-29 22:23

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.