Solutions · Containers
mi-app: adds capabilities that give root
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 adds SYS_ADMIN (cap_add).
Why it matters
Those capabilities make it possible to leave the container or touch the machine: mount disks, change the network, read other processes' memory.
What to do
- In the compose file (/ruta/al/proyecto/compose.yaml), in service app, remove SYS_ADMIN from cap_add and drop all the default ones too:
cap_drop: - ALL - If something stops working, add back only the one it needs: NET_BIND_SERVICE to listen on port 80; CHOWN, SETUID and SETGID if its startup switches user.
- 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
- They must no longer show up in what's added:
docker inspect -f '{{.HostConfig.CapAdd}} {{.HostConfig.CapDrop}}' 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 really needs it (a VPN needs NET_ADMIN), make that container the only one that has it: no other services inside and no ports open to everyone.
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.