Skip to content

Commit

Permalink
Merge pull request containerd#1344 from darfux/add-resolvconf-to-sand…
Browse files Browse the repository at this point in the history
…box-container

Provide resolvConf to sandbox container's mounts
  • Loading branch information
Random-Liu authored Dec 2, 2019
2 parents 40e147c + dbc1fb3 commit 444f02a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/server/sandbox_run_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ func (c *criService) sandboxContainerSpec(id string, config *runtime.PodSandboxC
Type: "bind",
Options: []string{"rbind", "ro"},
},
// Add resolv.conf for katacontainers to setup the DNS of pod VM properly.
{
Source: c.getResolvPath(id),
Destination: resolvConfPath,
Type: "bind",
Options: []string{"rbind", "ro"},
},
}))

selinuxOpt := securityContext.GetSelinuxOptions()
Expand Down

0 comments on commit 444f02a

Please sign in to comment.