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