Skip to content

Instantly share code, notes, and snippets.

@useless-stuff
Created July 7, 2020 09:45
Show Gist options
  • Save useless-stuff/8ea35bbb4fd8dffaa9a84507bb47f299 to your computer and use it in GitHub Desktop.
Save useless-stuff/8ea35bbb4fd8dffaa9a84507bb47f299 to your computer and use it in GitHub Desktop.
Run a sequence of bash commands in a docker container
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