| ▲ | coldtea 19 hours ago | |||||||||||||
>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. 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. | ||||||||||||||
| ▲ | enriquto 19 hours ago | parent [-] | |||||||||||||
I understand the mechanism. I wanted to know the reasons for this choice. Why choose to break user boundaries? Why can't docker images be files in the possession of each user? | ||||||||||||||
| ||||||||||||||