win10 docker无法启动nginx 443端口被占用

报错如下,是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 //或者命令干掉
在这里插入图片描述

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值