|
|
|
|
|
by enriquto
40 days ago
|
|
> I'm happy to answer any questions you may have. Why doesn't docker respect unix filesystem permissions? I use docker on a shared server, i can delete docker images of other users. This is bonkers. Is it a defect of a particular docker setup (following standard instructions on ubuntu), or it's an intrinsic feature of docker itself? |
|
Same reason a Postgres root can delete tables of other users.
It could, but it would be a shim on top of Docker to respect them.
Docker is a service daemon running as root, and the images of other users are just entries created by the other users in its registry, not server files that have permissions of each user.
When you're creating a new docker image, you just send a command to that daemon process - you're not passing your user account credentials to create. As far as docker is concerned, it's just one more image it knows, not an image belonging to you specifically.