Created
March 22, 2021 21:23
-
-
Save tldrafael/f87b9e1c0acd47a226afa9ca4c5fcb79 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
export UID=$(id -u) | |
export GID=$(id -g) | |
docker run --user $UID:$GID \ | |
--workdir="/home/$USER" \ | |
-v "/etc/group:/etc/group:ro" \ | |
-v "/etc/passwd:/etc/passwd:ro" \ | |
-v "/etc/shadow:/etc/shadow:ro" \ | |
-it $DOCKER_IMAGE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment