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
# SSH agent forward as root user | |
docker run --rm -it \ | |
-v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK \ | |
-e SSH_AUTH_SOCK=$SSH_AUTH_SOCK \ | |
ubuntu:20.04 /bin/bash | |
# SSH agent forward as non-root user | |
docker run --rm -it \ | |
-v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK \ | |
-e SSH_AUTH_SOCK=$SSH_AUTH_SOCK \ |