Add /etc/resolv.conf bind mounts

This commit is contained in:
Praneeth Bodduluri 2015-04-30 11:43:00 +02:00 committed by Pablo Carranza Vélez
parent c03658528c
commit cb24f338af
3 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
* Bind mount /etc/resolv.conf as ro for application containers and supervisor [Praneeth]
# v0.0.12
* Stopped displaying an error message when trying to start a container that is already started.

View File

@ -208,6 +208,7 @@ exports.start = start = (app) ->
'/lib/modules:/lib/modules'
'/run/dbus:/run/dbus'
'/var/run/docker.sock:/run/docker.sock'
'/etc/resolv.conf:/etc/resolv.conf:ro'
]
)
.catch (err) ->

View File

@ -37,4 +37,5 @@ config.supervisorContainer =
'/resin-data/resin-supervisor:/data'
'/proc/net/fib_trie:/mnt/fib_trie'
'/var/log/supervisor-log:/var/log'
'/etc/resolv.conf:/etc/resolv.conf:ro'
]