Skip to content

Instantly share code, notes, and snippets.

@mrkschan
Last active January 18, 2021 08:50
Show Gist options
  • Save mrkschan/02e59eed1267c3e1f5c0fe78f5776de2 to your computer and use it in GitHub Desktop.
Save mrkschan/02e59eed1267c3e1f5c0fe78f5776de2 to your computer and use it in GitHub Desktop.
dockerized $CWD
docker run -e HOME -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e SSH_AUTH_SOCK -v /tmp:/tmp -v "/run/user/$UID":"/run/user/$UID" -v "$HOME":"$HOME" -w "$(pwd)" --rm -i -t <image> <command>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment