on macos if you run docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -n -i sh then you can access to image layers in /var/lib/docker/overlay2