启用 IPV6 支持

说明

  • 基于 NAT
  • 请使用最新版本的 Docker
  1. cd /opt/jumpserver-installerer-v2.23.2
  2. ./jmsctl.sh down
  1. vi /opt/jumpserver/config/config.txt
  1. ## IPV6
  2. USE_IPV6=1
  3. DOCKER_SUBNET_IPV6=fc00:1010:1111:200::/64
  1. vi /etc/docker/daemon.json
  1. # 加入下面内容,注意不要覆盖已有的内容
  2. {
  3. "ipv6": true,
  4. "fixed-cidr-v6": "fc00:1010:1111:100::/64",
  5. "experimental": true,
  6. "ip6tables": true,
  7. }
  1. systemctl restart docker
  1. ./jmsctl.sh start

修改完成后的 daemon.json 供参考

  1. {
  2. "data-root": "/var/lib/docker",
  3. "experimental": true,
  4. "fixed-cidr-v6": "fc00:1010:1111:100::/64",
  5. "ip6tables": true,
  6. "ipv6": true,
  7. "live-restore": true,
  8. "log-driver": "json-file",
  9. "log-opts": {
  10. "max-file": "3",
  11. "max-size": "10m"
  12. },
  13. "registry-mirrors": [
  14. "https://hub-mirror.c.163.com",
  15. "http://f1361db2.m.daocloud.io"
  16. ]
  17. }