Hello everyone! I am new to docker, and I have a use case where I want to have a web interface that modifies/builds a persistent file that can be used by other processes. I have been looking but I can’t seem to find a good example to work from. I can find REST API examples and I can find persistent storage examples. Ideally, I need to see an example docker container that has a web interface where I input data into it, and it builds a file on the local host (external to the container). Can anyone point me to something like this? Any help is much appreciated!
To access the host filesystem from inside the container, you need to run your container with a bind mount (doc):
docker run -v /home/user/data:/data …
1 Like