gliderlabs / resolvable

Host-level DNS gateway for Docker
MIT License
315 stars 37 forks source link

Upstart Support #16

Open ekristen opened 8 years ago

ekristen commented 8 years ago

This restart's the resolvconf service via the dbus.

Go is not my language, so most likely can be improved.

docker run -d \
    --hostname resolvable \
    -v /var/run/docker.sock:/tmp/docker.sock \
    -v /etc/resolvconf/resolv.conf.d/head:/tmp/resolv.conf \
    -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket \
    mgood/resolvable