跳转至

了解飞致云旗下开源产品

启用 IPV6 支持⚓︎

说明

  • 基于 NAT
  • 请使用最新版本的 Docker

cd /opt/jumpserver-installerer-v2.28.8
./jmsctl.sh down
vi /opt/jumpserver/config/config.txt
## IPV6
USE_IPV6=1
DOCKER_SUBNET_IPV6=fc00:1010:1111:200::/64
vi /etc/docker/daemon.json
# 加入下面内容,注意不要覆盖已有的内容
{
  "ipv6": true,
  "fixed-cidr-v6": "fc00:1010:1111:100::/64",
  "experimental": true,
  "ip6tables": true,
}
systemctl restart docker
./jmsctl.sh start

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

{
  "data-root": "/var/lib/docker",
  "experimental": true,
  "fixed-cidr-v6": "fc00:1010:1111:100::/64",
  "ip6tables": true,
  "ipv6": true,
  "live-restore": true,
  "log-driver": "json-file",
  "log-opts": {
    "max-file": "3",
    "max-size": "10m"
  },
  "registry-mirrors": [
    "https://hub-mirror.c.163.com",
    "http://f1361db2.m.daocloud.io"
  ]
}