Bind mount /etc/resolv.conf into nginx container

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2017-11-28 17:18:17 +00:00
parent 3cd02db567
commit 3bc4766f39
7 changed files with 15 additions and 3 deletions

View File

@ -29,6 +29,8 @@ services:
- CAP_SETUID
- CAP_SETGID
- CAP_DAC_OVERRIDE
binds:
- /etc/resolv.conf:/etc/resolv.conf
trust:
org:
- linuxkit

View File

@ -33,8 +33,9 @@ services:
- CAP_SETUID
- CAP_SETGID
- CAP_DAC_OVERRIDE
binds:
- /etc/resolv.conf:/etc/resolv.conf
trust:
org:
- linuxkit
image:
- nginx:alpine
- library

View File

@ -30,6 +30,8 @@ services:
- CAP_SETUID
- CAP_SETGID
- CAP_DAC_OVERRIDE
binds:
- /etc/resolv.conf:/etc/resolv.conf
trust:
org:
- linuxkit

View File

@ -37,6 +37,8 @@ services:
- CAP_SETUID
- CAP_SETGID
- CAP_DAC_OVERRIDE
binds:
- /etc/resolv.conf:/etc/resolv.conf
trust:
org:
- linuxkit

View File

@ -26,7 +26,8 @@ services:
- CAP_SETUID
- CAP_SETGID
- CAP_DAC_OVERRIDE
net: host
binds:
- /etc/resolv.conf:/etc/resolv.conf
trust:
org:
- linuxkit

View File

@ -33,6 +33,8 @@ services:
- CAP_SETUID
- CAP_SETGID
- CAP_DAC_OVERRIDE
binds:
- /etc/resolv.conf:/etc/resolv.conf
trust:
org:
- linuxkit

View File

@ -31,6 +31,8 @@ services:
- CAP_SETUID
- CAP_SETGID
- CAP_DAC_OVERRIDE
binds:
- /etc/resolv.conf:/etc/resolv.conf
files:
- path: etc/containerd/config.toml
contents: |