Can I mount same volume to multiple docker containers

Yes you can add same location as a volume to many docker containers. Additionally you can use –volumes-from to mount your log directory in one container not actually running any application and then use the volumes from this container in your other containers without having to repeat the paths everywhere. Worth a read Docker volumes

Docker 1.10 access a container by its hostname from a host machine

As answered here there is a software solution for this, called DNS Proxy Server. $ sudo ./dns-proxy-server $ docker run –rm –hostname nginx.dev nginx $ ping nginx.dev PING nginx.dev (172.17.0.4) 56(84) bytes of data. 64 bytes from 172.17.0.4 (172.17.0.4): icmp_seq=1 ttl=64 time=0.043 ms 64 bytes from 172.17.0.4 (172.17.0.4): icmp_seq=2 ttl=64 time=0.022 ms

how does Docker Embedded DNS resolver work?

Maybe you have already found that Docker (aka Moby) internally uses libnetwork to configure and enable the embedded DNS resolver. Libnetwork binds the resolver to the container’s loopback interface, so that DNS queries at 127.0.0.11 can be routed (via iptables) to the “backend DNS resolver” in the Docker Engine. See the libnetwork type and the … Read more

How to directly mount NFS share/volume in container using docker compose v3

After discovering that this is massively undocumented,here’s the correct way to mount a NFS volume using stack and docker compose. The most important thing is that you need to be using version: “3.2” or higher. You will have strange and un-obvious errors if you don’t. The second issue is that volumes are not automatically updated … Read more