Created
July 7, 2020 09:45
-
-
Save useless-stuff/8ea35bbb4fd8dffaa9a84507bb47f299 to your computer and use it in GitHub Desktop.
Run a sequence of bash commands in a docker container
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
NAME="Diego" | |
docker run -i -w /service -v $PWD:/service orchestra/builder:latest bash -s <<EOF | |
cd /service | |
echo "HELLO ${NAME}" >> file.log | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment