码迷,mamicode.com
首页 > 其他好文 > 详细

docker 端口映射错误解决方法

时间:2019-01-17 19:35:39      阅读:1323      评论:0      收藏:0      [点我收藏+]

标签:erro   work   snap   star   could   int   iptable   bridge   down   

#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 端口映射错误解决方法

标签:erro   work   snap   star   could   int   iptable   bridge   down   

原文地址:https://www.cnblogs.com/yaun1498078591/p/10283639.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!