package/docker-engine: bump version to 20.10.7
PATCH 1/2 package/docker-engine: bump version to 20.10.7
Drop upstreamed patch fix-port-forwarding-with-ipv6.
Upstream commit: d29a55c6c344a536089d6b1bcd92be9cdea20641
--- ...-port-forwarding-with-ipv6.disable-1.patch | 74 ------------------- package/docker-engine/docker-engine.hash | 2 +- package/docker-engine/docker-engine.mk | 2 +- 3 files changed, 2 insertions(+), 76 deletions(-) delete mode 100644 package/docker-engine/0001-fix-port-forwarding-with-ipv6.disable-1.patch
package/docker-engine/0001-fix-port-forwarding-with-ipv6.disable-1.patch deleted +0 -74
@@ -1,74 +0,0 @@ -From 7b9c2905883df5171fda10a364a81b8c6176c8e2 Mon Sep 17 00:00:00 2001 -From: Akihiro Suda <[email protected]> -Date: Mon, 26 Apr 2021 15:28:40 +0900 -Subject: [PATCH] fix port forwarding with ipv6.disable=1 - -Make `docker run -p 80:80` functional again on environments with kernel boot parameter `ipv6.disable=1`. - -Fix moby/moby issue 42288 - -Signed-off-by: Akihiro Suda <[email protected]> -[Upstream: https://github.com/moby/libnetwork/pull/2635, - https://github.com/moby/moby/pull/42322] -[Rework path/drop test for docker-engine] -Signed-off-by: Peter Korsgaard <[email protected]> ---- - vendor/github.com/docker/libnetwork/drivers/bridge/port_mapping.go | 31 +++++++++++++++++++++++++++++++ - 1 file changed, 35 insertions(+), 0 deletion(-) - -diff --git a/vendor/github.com/docker/libnetwork/drivers/bridge/port_mapping.go b/vendor/github.com/docker/libnetwork/drivers/bridge/port_mapping.go -index 946130ec..17bf36f9 100644 ---- a/vendor/github.com/docker/libnetwork/drivers/bridge/port_mapping.go -+++ b/vendor/github.com/docker/libnetwork/drivers/bridge/port_mapping.go -@@ -5,6 +5,7 @@ import ( - "errors" - "fmt" - "net" -+ "sync" - - "github.com/docker/libnetwork/types" - "github.com/ishidawataru/sctp" -@@ -50,6 +51,13 @@ func (n *bridgeNetwork) allocatePortsInternal(bindings []types.PortBinding, cont - bs = append(bs, bIPv4) - } - -+ // skip adding implicit v6 addr, when the kernel was booted with `ipv6.disable=1` -+ // https://github.com/moby/moby/issues/42288 -+ isV6Binding := c.HostIP != nil && c.HostIP.To4() == nil -+ if !isV6Binding && !IsV6Listenable() { -+ continue -+ } -+ - // Allocate IPv6 Port mappings - // If the container has no IPv6 address, allow proxying host IPv6 traffic to it - // by setting up the binding with the IPv4 interface if the userland proxy is enabled -@@ -211,3 +219,26 @@ func (n *bridgeNetwork) releasePort(bnd types.PortBinding) error { - - return portmapper.Unmap(host) - } -+ -+var ( -+ v6ListenableCached bool -+ v6ListenableOnce sync.Once -+) -+ -+// IsV6Listenable returns true when `[::1]:0` is listenable. -+// IsV6Listenable returns false mostly when the kernel was booted with `ipv6.disable=1` option. -+func IsV6Listenable() bool { -+ v6ListenableOnce.Do(func() { -+ ln, err := net.Listen("tcp6", "[::1]:0") -+ if err != nil { -+ // When the kernel was booted with `ipv6.disable=1`, -+ // we get err "listen tcp6 [::1]:0: socket: address family not supported by protocol" -+ // https://github.com/moby/moby/issues/42288 -+ logrus.Debugf("port_mapping: v6Listenable=false (%v)", err) -+ } else { -+ v6ListenableCached = true -+ ln.Close() -+ } -+ }) -+ return v6ListenableCached -+} --- -2.20.1 -
package/docker-engine/docker-engine.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated -sha256 fd7f5571b1f64f26b5ca520a3e1fefb33c190f3732b931051c23a76bdba5000e docker-engine-20.10.6.tar.gz +sha256 b80142035de46904605fb7b8f18075cd94154f8c3d67ff346ea554d1e9d579b9 docker-engine-20.10.7.tar.gz sha256 7c87873291f289713ac5df48b1f2010eb6963752bbd6b530416ab99fc37914a8 LICENSE
package/docker-engine/docker-engine.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -DOCKER_ENGINE_VERSION = 20.10.6 +DOCKER_ENGINE_VERSION = 20.10.7 DOCKER_ENGINE_SITE = $(call github,moby,moby,v$(DOCKER_ENGINE_VERSION)) DOCKER_ENGINE_LICENSE = Apache-2.0
Signature · 1 line
2.31.1
PATCH 1/2 package/docker-engine: bump version to 20.10.7
I've been testing this and the docker version bump + patch drop both appear to work fine.
package/docker-engine/docker-engine.mk line 7
Quoted 2 lines · Christian Stewart
package/docker-engine/docker-engine.mk +1
-1-DOCKER_ENGINE_VERSION = 20.10.6 +DOCKER_ENGINE_VERSION = 20.10.7
Best,
Christian
PATCH 1/2 package/docker-engine: bump version to 20.10.7
Quoted 8 lines · Christian Stewart
I've been testing this and the docker version bump + patch drop both appear to work fine.
package/docker-engine/docker-engine.mk line 7
Quoted 2 lines · Christian Stewart
package/docker-engine/docker-engine.mk +1
-1-DOCKER_ENGINE_VERSION = 20.10.6 +DOCKER_ENGINE_VERSION = 20.10.7Tested-by Christian Stewart <[email protected]>
It's assumed that you have tested whatever you submit, so adding tested-by for
your own patches is pretty pointless.
Both applied to master, thanks.
Regards,
Arnout
PATCH 1/2 package/docker-engine: bump version to 20.10.7
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle <[email protected]> writes:
Quoted 6 lines · Christian Stewart
I've been testing this and the docker version bump + patch drop both appear to work fine.
package/docker-engine/docker-engine.mk line 7
Quoted 2 lines · Christian Stewart
package/docker-engine/docker-engine.mk +1
-1-DOCKER_ENGINE_VERSION = 20.10.6 +DOCKER_ENGINE_VERSION = 20.10.7
Committed to 2021.02.x and 2021.05.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/2 package/docker-cli: bump version to 20.10.7
In reply to Christian Stewart--- package/docker-cli/docker-cli.hash | 2 +- package/docker-cli/docker-cli.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/docker-cli/docker-cli.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated -sha256 eda53b96ab83a59502df2e5e00ab7ee867243259407ef454be55e695303c1113 docker-cli-20.10.6.tar.gz +sha256 0a7848b1b5031483de075433506d0448ddf834368d9c73770e453e0b89b49747 docker-cli-20.10.7.tar.gz sha256 2d81ea060825006fc8f3fe28aa5dc0ffeb80faf325b612c955229157b8c10dc0 LICENSE
package/docker-cli/docker-cli.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -DOCKER_CLI_VERSION = 20.10.6 +DOCKER_CLI_VERSION = 20.10.7 DOCKER_CLI_SITE = $(call github,docker,cli,v$(DOCKER_CLI_VERSION)) DOCKER_CLI_LICENSE = Apache-2.0
Signature · 1 line
2.31.1