Skip to content

Instantly share code, notes, and snippets.

@jongio
Last active November 3, 2021 07:36
Show Gist options
  • Save jongio/dccbd4ae1d1652b532e0c7fdad7ecb12 to your computer and use it in GitHub Desktop.
Save jongio/dccbd4ae1d1652b532e0c7fdad7ecb12 to your computer and use it in GitHub Desktop.
It's not technically SSH, but here's how you can get root access to the VM that runs Docker on your Windows host.
docker run --privileged -it -v /var/run/docker.sock:/var/run/docker.sock jongallant/ubuntu-docker-client
docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh
chroot /host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment