docker 端口映射错误解决方法

Posted yaun1498078591

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker 端口映射错误解决方法相关的知识,希望对你有一定的参考价值。

#docker run -u root -p 8080:8080 -p 50000:50000 -v /home/jenkins:/var/jenkins_home jenkins
65cd9915952bbd5885dd9a9a1477e9ce5d46d1f6c952b90a71235539e4e41e0f
docker: Error response from daemon: failed to create endpoint confident_mclean on network bridge: adding interface veth8eeee09 to bridge docker0 failed: could not find bridge docker0: route ip+net: no such network interface.
# pkill docker
# iptables -t nat -F
# ifconfig docker0 down
# brctl delbr docker bridge
docker doesnt exist; cant delete it
# brctl delbr docker0
# systemctl start docker
# docker images
REPOSITORY    TAG                  IMAGE ID                CREATED              SIZE
jenkins                 latest                cd14cecfdb3a          6 months ago         696MB
# docker ps -a
# docker run -u root -p 8080:8080 -p 50000:50000 --name jenkins --privileged=true -v /home/jenkins:/var/jenkins_home jenkins
这样就正常了! Running
from: /usr/share/jenkins/jenkins.war webroot: EnvVars.masterEnvVars.get("JENKINS_HOME") Jan 17, 2019 9:10:06 AM Main deleteWinstoneTempContents WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war Jan 17, 2019 9:10:06 AM org.eclipse.jetty.util.log.JavaUtilLog info INFO: Logging initialized @550ms Jan 17, 2019 9:10:06 AM winstone.Logger logInternal INFO: Beginning extraction from war file Jan 17, 2019 9:10:07 AM org.eclipse.jetty.util.log.JavaUtilLog warn WARNING: Empty contextPath Jan 17, 2019 9:10:08 AM org.eclipse.jetty.util.log.JavaUtilLog info INFO: jetty-9.2.z-SNAPSHOT

 


以上是关于docker 端口映射错误解决方法的主要内容,如果未能解决你的问题,请参考以下文章

docker 端口映射被删除,映射断开问题解决

docker端口映射失败解决方法

无法连接docker端口映射问题的解决

解决CentOS7 docker容器映射端口只监听ipv6的问题

Docker 端口映射问题

DocKer 创建容器 镜像端口映射失败