简体   繁体   English

docker 运行失败,并显示“docker:来自守护程序的错误响应:地址已在使用中。”

[英]docker run fails with “docker: Error response from daemon: Address already in use.”

When I try to execute:当我尝试执行时:

docker run --name openldap --detach osixia/openldap:1.3.0 --network=development docker 运行 --name openldap --detach osixia/openldap:1.3.0 --network=development

it fails with "address already in use"它因“地址已在使用中”而失败

If I run dockerd with the -D flag i can see it requesting an ip6 address, fe80::42:242:ac11:2 , before it tries to exit but I do not seem to be able to control which ip6 address it requests, with either --ip6 or --link-local-ip如果我使用 -D 标志运行 dockerd,我可以看到它在尝试退出之前请求 ip6 地址fe80::42:242:ac11:2 ,但我似乎无法控制它请求的 ip6 地址,使用 --ip6 或 --link-local-ip

make sure you execute the command correctly... i noticed in the daemon debug output that it was choosing the wrong network and it's because i've put the image before the last parameter to the command确保正确执行命令...我在守护进程调试 output 中注意到它选择了错误的网络,这是因为我将图像放在命令的最后一个参数之前

it should be:它应该是:

docker run --name openldap --detach --network=development osixia/openldap:1.3.0 docker 运行 --name openldap --detach --network=development osixia/openldap:1.3.0

and then it runs fine然后它运行良好

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 docker:来自守护程序的错误响应:地址已在使用中 - docker: Error response from daemon: Address already in use docker:来自守护程序的错误响应:端口不可用:监听 tcp 0.0.0.0:5000:绑定:地址已在使用中 - docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:5000: bind: address already in use docker:来自守护程序的错误响应:端口不可用:侦听 tcp 0.0.0.0:3306:绑定:地址已在使用中 - docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:3306: bind: address already in use Docker 来自守护进程的错误响应:“冲突......容器已在使用” - Docker error response from daemon: "Conflict ... already in use by container" Docker运行失败,来自守护程序的错误响应 - Docker run failed with Error response from daemon ZeroMQ在[0.0.0.0:5555]上的Docker上没有.bind() - 已经在使用的地址。 为什么? - ZeroMQ fails to .bind() on Docker on [0.0.0.0:5555] - address already in use. Why? 运行docker run时出错:来自守护程序的错误响应 - Getting error while running docker run :Error response from daemon docker:来自守护程序的错误响应:无法调用容器命令“ ./run” - docker: Error response from daemon: Container command './run' could not be invoked Docker:来自守护进程的错误响应:删除 myvol:卷正在使用中 - Docker: Error response from daemon: remove myvol: volume is in use docker build 失败并显示“地址已在使用中” - docker build fails with "address already in use"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM