Where are the docker containers and images stored in mac?

Akash Agarwal:
Where are the docker containers and images stored in mac ?

Rob Thorne:
This depends upon how you installed Docker. But remember, docker does not run natively on MacOS; it runs in a VM. So images will be stored on the file system of the virtual machine. How you access the VM will dictate where you find the images. But docker stores most of its files under /var/lib/docker on the filesystem of the virtual machine.

Akash Agarwal:
what about m1 pro ?

Rob Thorne:
<Where are docker images stored physically on macos? - Stack Overflow issue on StackOverflow that explains this> in more detail.

Rob Thorne:
As for the M1 pro; this can affect where the virtual file system sits on your Mac (apps like homebrew put things in different directories on Apple Silicon macs), but in principle, docker will have its files inside of a virtual file system, and not have them directly on your Mac.

Akash Agarwal:
Thanks