But small changes to any of these commands might lead to unexpected results, especially if you don't fully appreciate what you changed.
To add some more safety net, we can document alternative methods too, so that if one doesn't work for a user, they don't have to go digging through docker docs to figure out how to do it differently.
Problem Description
There are a lot of ways to start a docker container that needs a local file. Currently, we document doing it with
docker run
anddocker cp
like:But small changes to any of these commands might lead to unexpected results, especially if you don't fully appreciate what you changed.
To add some more safety net, we can document alternative methods too, so that if one doesn't work for a user, they don't have to go digging through docker docs to figure out how to do it differently.
Proposed Solution
Provide an example docker-compose.yml like:
which could be started with: