Skip to content

[20.10 backport] builder-next: relax second cache key requirements for schema1#42382

Merged
cpuguy83 merged 1 commit into
moby:20.10from
thaJeztah:20.10_backport_schema1_cache_fix
May 20, 2021
Merged

[20.10 backport] builder-next: relax second cache key requirements for schema1#42382
cpuguy83 merged 1 commit into
moby:20.10from
thaJeztah:20.10_backport_schema1_cache_fix

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

backport of #42371
fixes moby/buildkit#2033

Schema1 images can not have a config based cache key
before the layers are pulled. Avoid validation and reuse
manifest digest as a second key.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Schema1 images can not have a config based cache key
before the layers are pulled. Avoid validation and reuse
manifest digest as a second key.

Signed-off-by: Tonis Tiigi <[email protected]>
(cherry picked from commit 85167fc)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah

Copy link
Copy Markdown
Member Author

@cpuguy83 @tonistiigi @AkihiroSuda PTAL

@thaJeztah

Copy link
Copy Markdown
Member Author

Failure is a known flaky; #42357

--- FAIL: TestDaemonHostGatewayIP (4.48s)
    daemon_linux_test.go:161: [df952b9e9319e] failed to start daemon with arguments [--data-root /go/src/github.com/docker/docker/bundles/test-integration/TestDaemonHostGatewayIP/df952b9e9319e/root --exec-root /tmp/dxr/df952b9e9319e --pidfile /go/src/github.com/docker/docker/bundles/test-integration/TestDaemonHostGatewayIP/df952b9e9319e/docker.pid --userland-proxy=true --containerd-namespace df952b9e9319e --containerd-plugins-namespace df952b9e9319ep --containerd /var/run/docker/containerd/containerd.sock --host unix:///tmp/docker-integration/df952b9e9319e.sock --debug --storage-driver overlay2 --host-gateway-ip=6.7.8.9] : [df952b9e9319e] daemon exited during startup: exit status 1

@cpuguy83 cpuguy83 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpuguy83
cpuguy83 merged commit 3db8385 into moby:20.10 May 20, 2021
@thaJeztah
thaJeztah deleted the 20.10_backport_schema1_cache_fix branch May 20, 2021 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants