DockerでIPv6を有効にする
概要
Dockerでは、defaultでIPv6が無効になっています。
以下の設定で、有効にします。
CentOS7の場合
/etc/docker/daemon.jsonをなければ作成して、以下を記述します。
/etc/docker/daemon.json
{
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64"
}
dockerをreloadします。
$ sudo systemctl reload docker
macの場合
Docker for Macの「Preferences(設定)」 -> 「daemonタブ」 -> その中の「Advanced」タブで、
以下のようにCentOS7のものと同じものを追記して、「Apply & Restart」をクリックします。
参考
Author And Source
この問題について(DockerでIPv6を有効にする), 我々は、より多くの情報をここで見つけました https://qiita.com/Esfahan/items/4815033dad276f86acde著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .