Solutions · Containers
mi-app: mounts a machine folder with write access
With example names (mi-app, /ruta/al/proyecto). In GoTool, in 🛡 Security, this page shows your project's: your container, your compose file, your WordPress folder.
What's happening
Container mi-app mounts /etc from the machine at /host-etc, and can write to it.
Why it matters
From inside, that machine folder can be changed (its users, its startup scripts, its keys): that's leaving the container.
What to do
- If it only needs to read it: In the compose file (/ruta/al/proyecto/compose.yaml), in service app, make it read-only (:ro).
- /etc:/host-etc:ro - Better still, mount only what it needs (one file or a subfolder), not the whole folder.
- Recreate it with the change (whatever isn't in a volume is lost: that's the point):
docker compose -f /ruta/al/proyecto/compose.yaml up -d --force-recreate app
How to know it's fixed
- It must say false (it doesn't write):
docker inspect -f '{{range .Mounts}}{{if eq .Destination "/host-etc"}}{{.RW}}{{end}}{{end}}' mi-app - gotool checks your Docker again on its next pass: once it's gone, it stops showing up.
If you can't do it that way
- If it has to write (backups, for example), give it a folder of its own for that, not one of the machine's.
More
In GoTool, the file with the issue (the Dockerfile, the compose file) is also shown with the solution next to it, and the question for Claude comes ready, with your project's details and without your keys, to paste into your claude.ai.