Merge pull request #1344 from darfux/add-resolvconf-to-sandbox-container
Provide resolvConf to sandbox container's mounts
This commit is contained in:
commit
444f02a89e
@ -108,6 +108,13 @@ func (c *criService) sandboxContainerSpec(id string, config *runtime.PodSandboxC
|
|||||||
Type: "bind",
|
Type: "bind",
|
||||||
Options: []string{"rbind", "ro"},
|
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()
|
selinuxOpt := securityContext.GetSelinuxOptions()
|
||||||
|
Loading…
Reference in New Issue
Block a user