Editing files in Docker container using std::fs

Hi everyone,
I have running multiple Docker containers (for managing containers I use bollard) and would like to create/write/edit files in the container using std::fs
How can I achieve that?

You can use the APIs in std::fs normally even if your process runs inside a container.

I mean I want to modify files in Docker container using process that is not running in the container

You can then mount a Docker volume inside the container.

2 Likes

Thank you, I'll check it out!

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.