Other answers here are out of date if you are using Docker for Mac.
Here's how I managed to get into the VM. Run the command:
screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
This is the default path, but you may need to do this first: cd ~/Library/Containers/com.docker.docker/Data/vms
and then ls to see which directory your virtual machine is in, and replace "0" accordingly
When you are inside, you can just see a blank screen. Press the Enter key.
This page explains that to exit the virtual machine you need to press "Ctrl-a" and then "d".
Dmitriy Dec 12 '18 at 20:10 2018-12-12 20:10
source share