From 6b848bca454cd5911d5b6eae129b51293d00610e Mon Sep 17 00:00:00 2001 From: TomSweeneyRedHat Date: Sat, 17 Jun 2017 14:39:38 -0400 Subject: [PATCH] Add clarification to --privileged error message Signed-off-by: TomSweeneyRedHat Upstream-commit: 38e26f0d8d0941a34164c64b04c9646c8c89ac29 Component: engine --- components/engine/daemon/daemon_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/daemon/daemon_unix.go b/components/engine/daemon/daemon_unix.go index 0778dde4f7..c10ffb85fb 100644 --- a/components/engine/daemon/daemon_unix.go +++ b/components/engine/daemon/daemon_unix.go @@ -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")