Last active
November 3, 2021 07:36
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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