Hit the Alpine linux file system that launches Docker-for-mac

I play with the (awesome) new Docker-for-mac. As far as I understand, it works fine on my Mac in alpine Linux "backstage". Is there an ssh way in this host so that I can see the file system. I want to see the place where docker stores volume data in / var / lib / docker / ....

EDIT: to be clear, this is the host file system I want to access, not the containers that run on it. this is an alpine host

thanks

+3
source share
1 answer

Docker for Mac does not use the normal tcp network for ssh, but you can connect to the unix socket on your Mac using:

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

and log in as root

This seems pretty undocumented, so YMMV - it worked for me in version 1.12.0-rc3-beta18 - it may change in future versions.

+2
source

All Articles