Docker: Run a script in a container redirecting output to a file on the host machine
· 3 min read
This post shows an example of a bash script which creates a Docker container, copies a bash script to it, executes that script from the host, and saves its output on the host machine.