I need to pipe (inject) a file or some data into docker as part of the run command and have it written to a file within the container as part of the startup. Is there best pract
The better solution is to make (mount) you host folder be accessible to docker container. E.g. like this
docker run -v /Users/:/ ...
Here is /Users/
is a folder on your host computer and
mounted path inside container.
Also see Manage data in containers manual page.
UPDATE another Accessing External Files from Docker Containers example.