Merge pull request #13399 from hqhq/hq_fix_run_test

Fix test failure when --net none build
This commit is contained in:
Brian Goff 2015-05-21 21:50:44 -04:00
commit 23e8dff9e7

View file

@ -1459,6 +1459,7 @@ func (s *DockerSuite) TestRunDnsOptionsBasedOnHostResolvConf(c *check.C) {
// check if the container resolv.conf file has atleast 0644 perm.
func (s *DockerSuite) TestRunNonRootUserResolvName(c *check.C) {
testRequires(c, SameHostDaemon)
testRequires(c, Network)
cmd := exec.Command(dockerBinary, "run", "--name=testperm", "--user=default", "busybox", "ping", "-c", "1", "www.docker.io")
if out, err := runCommand(cmd); err != nil {