Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ: docker run fails with IPv6 error message #4

Open
tiran opened this issue Aug 4, 2020 · 1 comment
Open

FAQ: docker run fails with IPv6 error message #4

tiran opened this issue Aug 4, 2020 · 1 comment

Comments

@tiran
Copy link
Member

tiran commented Aug 4, 2020

On Fedora 32 host Docker / moby-engine fails with an IPv6 related error message:

$ docker run ... freeipa-server
systemd v245.6-2.fc32 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
Detected virtualization container-other.
Detected architecture x86-64.
Set hostname to <ipa.example.test>.
IPv6 stack is enabled in the kernel but there is no interface that has ::1 address assigned. Add ::1 address resolution to 'lo' interface. You might need to enable IPv6 on the interface 'lo' in sysctl.conf.
The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
Tue Aug  4 13:25:49 UTC 2020 /usr/sbin/ipa-server-configure-first 

Workaround: https://docs.docker.com/config/daemon/ipv6/

  • Edit /etc/docker/daemon.json to enable IPv6 support
{
  "ipv6": true,
  "fixed-cidr-v6": "2001:db8:1::/64"
}
  • systemctl restart docker
@adelton
Copy link

adelton commented Aug 19, 2020

Alternatively, docker run --sysctl net.ipv6.conf.all.disable_ipv6=0 ... does the trick as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants