首页 > 其他 > 详细

docker中运行envoy 报错 cannot bind '0.0.0.0:80': Permission denied

时间:2020-09-09 21:45:12      阅读:243      评论:0      收藏:0      [点我收藏+]

docker-compose文件

version: ‘3‘
services:
  envoy:
    image: envoyproxy/envoy-alpine:v1.15-latest
    volumes:
    - ./envoy.yaml:/etc/envoy/envoy.yaml
    network_mode: "service:mainserver" 
    depends_on:
    - mainserver
  mainserver:
    image: sealloong/envoy-end:latest
    networks:
      envoymesh:
        aliases:
        - webserver
        - httpserver
        - envoy_end
networks:
  envoymesh: {}

启动时报错

envoy_1       | [2020-09-06 07:09:48.618][8][critical][main] [source/server/server.cc:101] error initializing configuration ‘/etc/envoy/envoy.yaml‘: cannot bind ‘0.0.0.0:80‘: Permission denied
envoy_1       | [2020-09-06 07:09:48.618][8][info][main] [source/server/server.cc:704] exiting
envoy_1       | cannot bind ‘0.0.0.0:80‘: Permission denied
root_envoy_1 exited with code 1

参考 list

environment:
- "ENVOY_UID=0"

docker中运行envoy 报错 cannot bind '0.0.0.0:80': Permission denied

原文:https://www.cnblogs.com/LC161616/p/13641803.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!