Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozgurgul/e37f9b6682fc0451d57cfde72bd6eb8a to your computer and use it in GitHub Desktop.
Save ozgurgul/e37f9b6682fc0451d57cfde72bd6eb8a 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