Linux普通用户使用端口限制问题 只能用1024以上端口的问题

执行某条docker命令 需要监听80端口 报错如下

cannot expose privileged port 80, you can add 'net.ipv4.ip_unprivileged_port_start=80' to /etc/sysctl.conf (currently 443), or set CAP_NET_BIND_SERVICE on rootlesskit binary, or choose a larger port number (>= 443): listen tcp4 0.0.0.0:80: bind: permission denied
  1. 编辑 sudo vi /etc/sysctl.conf
    加入net.ipv4.ip_unprivileged_port_start=80
  2. 生效 sudo sysctl -p 即可
本文版权归 123456.blog 所有
转载请附上原文出处链接和本声明
本文链接:
数字工·「」· https://123456.blog ip: 34.225.194.102
Copyright © 2022 Hotpot. All rights reserved. Made with ❤ , 3Q ; Deployed: Kubernetes(k8s),Docker
Design by HotpoT; VvE3 ,NuxT3 123456.blog@0.1.0