From dba5a7f243e6c251176585571419b595172e9402 Mon Sep 17 00:00:00 2001 From: Kenfe-Mickael Laventure Date: Tue, 9 Feb 2016 11:19:19 -0800 Subject: [PATCH] Disable TestRunMountshmmqueuefromhost when using userns Since we now automatically mount the mqueue device inside the container (instead of bind mounting the one from the host), when trying to start a container with --ipc=host, the mount will fail with EPERM. Signed-off-by: Kenfe-Mickael Laventure --- integration-cli/docker_cli_run_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-cli/docker_cli_run_test.go b/integration-cli/docker_cli_run_test.go index f99f4745d5..d797d0450f 100644 --- a/integration-cli/docker_cli_run_test.go +++ b/integration-cli/docker_cli_run_test.go @@ -2433,7 +2433,7 @@ func (s *DockerSuite) TestRunModeIpcContainerNotRunning(c *check.C) { func (s *DockerSuite) TestRunMountShmMqueueFromHost(c *check.C) { // Not applicable on Windows as uses Unix-specific capabilities - testRequires(c, SameHostDaemon, DaemonIsLinux) + testRequires(c, SameHostDaemon, DaemonIsLinux, NotUserNamespace) dockerCmd(c, "run", "-d", "--name", "shmfromhost", "-v", "/dev/shm:/dev/shm", "-v", "/dev/mqueue:/dev/mqueue", "busybox", "sh", "-c", "echo -n test > /dev/shm/test && touch /dev/mqueue/toto && top") defer os.Remove("/dev/mqueue/toto")