报错如下,是443端口被占用了
D:\dockerproject>docker-compose up -d
test-redis is up-to-date
test-mysql is up-to-date
test-elasticsearch is up-to-date
test-php is up-to-date
Starting test-nginx ... error
ERROR: for test-nginx Cannot start service nginx: b'driver failed programming external connectivity on endpoint test-nginx (3d6b65b784fb1eebbaabb1eef80630456f96c88c89fd8a51396324ca94b7fc6d): Error starting userland proxy: Bind for 0.0.0.0:443 failed: port is already allocated'
ERROR: for nginx Cannot start service nginx: b'driver failed programming external connectivity on endpoint test-nginx (3d6b65b784fb1eebbaabb1eef80630456f96c88c89fd8a51396324ca94b7fc6d): Error starting userland proxy: Bind for 0.0.0.0:443 failed: port is already allocated'
ERROR: Encountered errors while bringing up the project.
netstat -ano|findstr “443” 查看 端口被谁占用,
tasklist|findstr “5372” //查找PID为5372对应的进程名看到是vmvware-hostd占用,任务管理器干掉它就行了
taskkill /pid 5372 -t //或者命令干掉