Last active
March 10, 2022 18:48
-
-
Save asterbini/96c4988e5236fcf85626ca128a564b8b to your computer and use it in GitHub Desktop.
forward ssh authentication inside a running docker container by mounting the SSH_AUTH_SOCKET
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 --rm -ti \ | |
-v $(SSH_AUTH_SOCKET):/ssh-socket -e SSH_AUTH_SOCKET=/ssh-socket \ | |
--user $UID:$GROUPS \ | |
asterbini/image \ | |
bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment