Docker Community Forums

Share and learn in the Docker community.

Error Running Docker container on host network

docker

#1

Since updating my systems I get an error when running " docker run --network=host -e PORT0=9980 -e PORT1=9981 mesosphere/chronos:v3.0.2"

docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:301: running exec setns process for init caused “exit status 22"”: unknown.
ERRO[0000] error waiting for container: context canceled

It runs fine when using --network=bridge

The docker version is docker-ce/xenial,now 5:18.09.0~3-0~ubuntu-xenial amd64 [installed]

Linux version is Ubuntu 16.04.5 LTS.

The Host network configuration is :

docker network inspect host
[
{
“Name”: “host”,
“Id”: “871734ef6be57bc5144788337678c03e8519c5741c786671d26d8d270e55d7a4”,
“Created”: “0001-01-01T00:00:00Z”,
“Scope”: “local”,
“Driver”: “host”,
“EnableIPv6”: false,
“IPAM”: {
“Driver”: “default”,
“Options”: null,
“Config”:
},
“Internal”: false,
“Attachable”: false,
“Ingress”: false,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: {},
“Options”: {},
“Labels”: {}
}

It worked fine before the last patch round. We have an Acceptance environment which is identical where the problem does not occur.

Does anybody have a tip how to solve this, where to search, how to find the problem ?

Thanks in advance for the answer.