[英]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.