当我使用--net=host
选项启动容器时,任何人都知道为什么我会看到以下错误?如果我从选项中删除--net=host
,它就会正常启动。
sudo /usr/bin/docker run -itd --pid=host --net=host --name=contivNet \
--privileged -v /etc/openvswitch:/etc/openvswitch \
-v /etc/kubernetes/ssl:/tmp/kubernets/ssl -v /var/run/:/var/run/ \
-v /var/contiv:/var/contiv rajenata/contiv:0.1 -m -p kubernetes \
-c etcd://127.0.0.1:2379
5c4af0da6e5a2e02748cad9921ed3254f13dc53ed5d4851982be8bf965e38c59
docker: Error response from daemon: Cannot start container 5c4af0da6e5a2e02748cad9921ed3254f13dc53ed5d4851982be8bf965e38c59: [9] System error: json: cannot unmarshal object into Go value of type libcontainer.syncType.