Default docker-machine

I am trying to learn more about intermediate docker layers which are created while building an image.

I found this article:

which wrote:

To dig down into each layer of the image and view its contents you need to view the layers on the Docker host at:
/var/lib/docker/aufs
At the time of this writing, if running Docker on OSX, the Docker host is actually a linux virtual machine called docker machine. On OSX you can ssh into the docker machine to view the aufs directory:
$ docker-machine ssh default

I found this docker-machine to be stopped, so I am not sure the information continue to be accurate.

Is default machine related to the one I can connect to to view the docker.log by doing:

screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty

?

1 Like

Indeed, that outdated knowledge prescribes using docker-machine to access the VM, but now the Docker Toolbox installation page states:

If you have macOS 10.13.0 High Sierra or newer, consider using Docker Desktop for Mac instead. It runs natively on the Mac, so there is no need for a pre-configured Docker QuickStart shell. It uses the native macOS Hypervisor framework for virtualization, instead of Oracle VirutalBox.

So I agree that the article you referenced is not accurate for Docker Desktop for Mac users. I’m also looking for an updated way to inspect individual layers’ contents on a Mac. I’ll share if I find anything but would also appreciate pointers from anyone else.