Solutions · Containers
mi-app: runs with --privileged
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 runs with --privileged (privileged: true): it sees every device on the machine and has every capability.
Why it matters
Getting from a privileged container to root on the machine is immediate: mounting the machine's disk from inside is enough.
What to do
- In the compose file (/ruta/al/proyecto/compose.yaml), in service app, remove privileged: true (or --privileged).
- If it needed it for something specific, give it only that: one capability or one device.
cap_add: - NET_ADMIN devices: - /dev/fuse - 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:
docker inspect -f '{{.HostConfig.Privileged}}' 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 a tool asks for --privileged (Docker in Docker, building images), replace it with one that doesn't: Kaniko or Buildah to build, Sysbox for Docker in Docker.
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.