mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add clarification to --privileged error message
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
This commit is contained in:
parent
d311a3a681
commit
38e26f0d8d
1 changed files with 1 additions and 1 deletions
|
@ -550,7 +550,7 @@ func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *containertypes.
|
|||
// check for various conflicting options with user namespaces
|
||||
if daemon.configStore.RemappedRoot != "" && hostConfig.UsernsMode.IsPrivate() {
|
||||
if hostConfig.Privileged {
|
||||
return warnings, fmt.Errorf("Privileged mode is incompatible with user namespaces")
|
||||
return warnings, fmt.Errorf("Privileged mode is incompatible with user namespaces. You must run the container in the host namespace when running privileged mode.")
|
||||
}
|
||||
if hostConfig.NetworkMode.IsHost() && !hostConfig.UsernsMode.IsHost() {
|
||||
return warnings, fmt.Errorf("Cannot share the host's network namespace when user namespaces are enabled")
|
||||
|
|
Loading…
Add table
Reference in a new issue