Last active
June 20, 2019 17:31
-
-
Save rifki/8eded75fa373542e14d79f4c98ebeff7 to your computer and use it in GitHub Desktop.
run script from host to docker
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
# run script to container Docker | |
# -u 0 => root | |
docker exec -u 0 -ti CONTAINERID python /path/to/shell-scripts/script.py |
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 to docker as root | |
# -u 0 => root | |
docker exec -u 0 -it CONTAINERID /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment