Docker Community Forums

Share and learn in the Docker community.

Docker run --network=host option fails

Docker version
Version: 1.12.2
API version: 1.24
Go version: go1.7
Git commit: 8eab29e
OS/Arch: linux/amd64

Docker info
Storage Driver: btrfs
Build Version: Btrfs v4.1.2+20151002
Library Version: 101
Logging Driver: json-file
Cgroup Driver: cgroupfs
Volume: local
Network: host bridge null overlay
Swarm: inactive
Runtimes: oci runc
Default Runtime: oci
Security Options: apparmor
Kernel Version: 4.4.21-68-default
Operating System: SUSE Linux Enterprise Server 12 SP2
OSType: linux
Architecture: x86_64
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false

docker run -it --rm --network=host busybox /bin/sh

It fails and produces this error.
docker: Error response from daemon: invalid header field value “oci runtime error: container_linux.go:247: starting container process caused “process_linux.go:245: running exec setns process for init caused \“exit status 17\””\n”.

–network=bridge (default) or null works fine
only --network=host option fails.

Anyone has seen this or has a suggestion?


Did you found a solution? I having the same problem…

Thanks in advance.

Could you post the output of “ps -ef |grep docker”?