How to pass docker.sock to your containers while keeping security
1–6 of 6 posts
Re: How to pass docker.sock to your containers while keeping security
#2Re: How to pass docker.sock to your containers while keeping security
#3This is a great idea, I've always been wary of mounting docker.sock into a container. Does a read only mount make any difference I wonder?
Re: How to pass docker.sock to your containers while keeping security
#4This is a great idea, I've always been wary of mounting docker.sock into a container. Does a read only mount make any difference I wonder?
In thise case, you can't use a read only mount. The underlying protocol is HTTP, which means you must write a request to the socket to get a response. You can use read only mounts for `/proc` however, which just spits out data. I use it for titpetric/netdata for example.
Re: How to pass docker.sock to your containers while keeping security
#5This is a great idea, I've always been wary of mounting docker.sock into a container. Does a read only mount make any difference I wonder?
Re: How to pass docker.sock to your containers while keeping security
#6This is a great idea, I've always been wary of mounting docker.sock into a container. Does a read only mount make any difference I wonder?
From security point of view there is little practical differences. The container can still communicate with docker normally and trivially become a root on the host. What it prevents is altering ownership and permissions of the socket.