环境是mac 10.12.1 ,安装了docker compose,运行docker-compose up -d的时候,出现如下错误:
192:yii2_fecshop_docker xuefeng$ docker-compose up -d
yii2_fecshop_docker_mongodb_1 is up-to-date
yii2_fecshop_docker_xunsearch_1 is up-to-date
yii2_fecshop_docker_mysql_1 is up-to-date
yii2_fecshop_docker_redis_1 is up-to-date
yii2_fecshop_docker_php_1 is up-to-date
Starting yii2_fecshop_docker_web_1 ... error
ERROR: for yii2_fecshop_docker_web_1 Cannot start service web: b'driver failed programming external connectivity on endpoint yii2_fecshop_docker_web_1 (2a167ec5ffc092dc07560feba139653a54de442d51710a847285a8d93ab95e72): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)'
ERROR: for web Cannot start service web: b'driver failed programming external connectivity on endpoint yii2_fecshop_docker_web_1 (2a167ec5ffc092dc07560feba139653a54de442d51710a847285a8d93ab95e72): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)'
ERROR: Encountered errors while bringing up the project.
看着好像是80端口没法用,所以我尝试把占用80端口的进程干掉再跑docker-compose up -d,还是不行,这个怎么办?我对docker不熟悉。
谢谢🙏