docker_disconf
docker_disconf copied to clipboard
nginx镜像启动报错
我直接在docker-compose.yml文件所在的文件夹下执行:docker-compose up -d, 结果报错如下: Creating dockerdisconf_disconf_nginx_1 ... error
ERROR: for dockerdisconf_disconf_nginx_1 Cannot start service disconf_nginx: driver failed programming external connectivity on endpoint dockerdisconf_disconf_nginx_1 (1273f8036a41f3ac501fa1e7fc527775ffcf527bb8865e5d322264f6979985d7): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)
ERROR: for disconf_nginx Cannot start service disconf_nginx: driver failed programming external connectivity on endpoint dockerdisconf_disconf_nginx_1 (1273f8036a41f3ac501fa1e7fc527775ffcf527bb8865e5d322264f6979985d7): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE) ERROR: Encountered errors while bringing up the project.
这是为啥呢?
- 重启docker服务试试;
- 执行docker-compose up -d之前,用docker ps -a看一下有没有同名的容器;
- 打开docker-compose.yml看下里面几个映射的端口,看本机有没有占用这几个端口;
2017-09-18 19:11 GMT+08:00 zhaojigang [email protected]:
我直接在docker-compose.yml文件所在的文件夹下执行:docker-compose up -d, 结果报错如下: Creating dockerdisconf_disconf_nginx_1 ... error
ERROR: for dockerdisconf_disconf_nginx_1 Cannot start service disconf_nginx: driver failed programming external connectivity on endpoint dockerdisconf_disconf_nginx_1 (1273f8036a41f3ac501fa1e7fc5277 75ffcf527bb8865e5d322264f6979985d7): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)
ERROR: for disconf_nginx Cannot start service disconf_nginx: driver failed programming external connectivity on endpoint dockerdisconf_disconf_nginx_1 (1273f8036a41f3ac501fa1e7fc527775ffcf527bb8865e5d322264f6979985d7): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE) ERROR: Encountered errors while bringing up the project.
这是为啥呢?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zq2599/docker_disconf/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AE0XvXy8MOyWZV5ns9J6YwceoNvFUAA3ks5sjk_zgaJpZM4PawDU .