moby / moby/libnetwork

Network issue with IPv6 following update to version 20.10.6

Open
#2,629 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
2.2k
Forks
875
PR merge metrics
No merged PRs in 30d

Description

Hello,

Following the update Docker-ce from 20.10.5 to 20.10.6, I was no longer able to start my containers that use network.

I'm using Ubuntu 20.04 and the official docker repository.
In my syslog I got this message:
dockerd: time="2021-04-12T19:09:21.964156271-04:00" level=error msg="failed to start container" container=[number removed] error="driver failed programming external connectivity on endpoint tvheadend ([number removed]): Error starting userland proxy: listen tcp6 [::]:9982: socket: address family not supported by protocol"

The IPv6 is not enabled on my computer. I disabled the IPv6 at the kernel boot up (in the grub config file).
I don't need and I don't want to use IPv6 for many reasons.

I tried to uninstall docker, deleted config files, flushed images and containers, reinstalled everything and nothing worked.
I tried many settings, and nothing still worked.
I checked the default bridge network and parameter "EnableIPv6" was set to false.

So, my solution (temporary I hope) was to downgrade to previous version 20.10.5 and all my containers have re-started as expected.

I took a quick look to the release note for version 20.10.6 and I see that some changes was occurred related to IPv6 networking but I don't know how to fix my issue.

Someone can help me to configure Docker to ignore IPv6?

Thanks!!!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing Docker-ce 20.10.5 and 20.10.6 IPv6 networking changes and reproduce the failure on Ubuntu 20.04 with IPv6 disabled. Check the reported tcp6 userland-proxy bind failure against a default bridge where EnableIPv6 is false. Done means containers start without requiring IPv6, or the supported configuration and workaround are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.