Skip to content

Commit 2d0c12e

Browse files
milantracygvisor-bot
authored andcommitted
Add DNS config in example workflow to start Docker in gVisor at GKE AP.
The sandbox is not able to connect to DNS at /etc/resolv.conf that is bind mounted by GKE AP. As a result, use common DNS servers as a workaround. PiperOrigin-RevId: 758438440
1 parent 5d72669 commit 2d0c12e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

g3doc/user_guide/tutorials/docker-in-gke-sandbox.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ metadata:
4343
name: docker-in-gvisor
4444
spec:
4545
runtimeClassName: gvisor
46+
dnsPolicy: "None"
47+
dnsConfig:
48+
nameservers:
49+
- "1.1.1.1"
50+
- "8.8.8.8"
4651
containers:
4752
- name: docker-in-gvisor
4853
image: {registry_url}/docker-in-gvisor:latest
@@ -106,6 +111,3 @@ $ docker run -it --rm whalesay "Containers do not contain, but gVisor-s do!"
106111
\____\______/
107112

108113
```
109-
110-
> For GKE autopilot, please use `docker build --network=host -t whalesay .`
111-
> Running with bridge network driver in GKE autopilot is not fully supported.

0 commit comments

Comments
 (0)