docker: Error response from daemon: Ports are not available
在使用 docker 部署 zookeeper 时,出现错误提示。
docker run -d -p 2181:2181 --name=zookeeper --privileged zookeeper
错误提示:
docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:2181: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
2181 端口不让用
使用命令netsh interface ipv4 show excludedportrange protocol=tcp
可以查看哪些端口不让用
最简单的处理方式:不让用,就不用咯。
// 修改暴露端口为 3181 docker run -d -p 3181:2181 --name=zookeeper --privileged zookeeper
参考文章:
相关推荐
王道革 2020-11-25
bwyyziq 2020-11-22
pigsmall 2020-11-19
changecan 2020-11-19
helloWorldAndYou 2020-11-16
nginxs 2020-11-14
红石丶 2020-11-13
WanKaShing 2020-11-12
yangkang 2020-11-12
滴水穿石点石成金 2020-11-12
张荣珍 2020-11-12
wuxunanjing 2020-11-11
魅惑青花瓷 2020-11-11
lihongtai 2020-11-09
yangkang 2020-11-09
worldsnow 2020-11-06
MichaelJScofield 2020-11-06
TaoTaoFu 2020-11-06