Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Bump buildx and docker vendoring#1012

Merged
chris-crone merged 3 commits intodocker-archive:mainfrom
chris-crone:bump-buildx
Dec 11, 2020
Merged

Bump buildx and docker vendoring#1012
chris-crone merged 3 commits intodocker-archive:mainfrom
chris-crone:bump-buildx

Conversation

@chris-crone
Copy link
Copy Markdown
Contributor

What I did
Bumped buildx in go.mod so that we can use a newer containerd. This removes the annoying error message on macOS arm64:

$ ./bin/docker 
ERRO[0000] failure getting variant                       error="getCPUInfo for OS darwin: not implemented"

@chris-crone chris-crone marked this pull request as draft December 4, 2020 15:31
@rumpl
Copy link
Copy Markdown
Contributor

rumpl commented Dec 4, 2020

macOS arm64

Apple Silicon you mean?

Comment thread go.mod

go 1.15

// the distribution version from ecs plugin is quite old and it breaks containerd
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You got me, I thought all were removed, but you just moved them below! :D

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I tried to make it cleaner :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I bumped docker to v20.10.0-rc2 so this should now be a bit cleaner.

@chris-crone
Copy link
Copy Markdown
Contributor Author

This is in draft because a lot was added to go.sum so I'd like to debug a bit

@chris-crone chris-crone force-pushed the bump-buildx branch 2 times, most recently from 2997bad to 60bba5f Compare December 4, 2020 16:20
@chris-crone chris-crone changed the title deps: Bump buildx vendoring Bump buildx and docker vendoring Dec 4, 2020
@chris-crone chris-crone marked this pull request as ready for review December 7, 2020 13:27
@chris-crone chris-crone force-pushed the bump-buildx branch 2 times, most recently from d091183 to 171403e Compare December 9, 2020 12:32
@github-actions github-actions Bot added the local Local context (moby) label Dec 9, 2020
Comment thread local/compose/build.go
Copy link
Copy Markdown
Contributor

@gtardif gtardif left a comment

Choose a reason for hiding this comment

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

Testing the removed warning, I don't see any output when docker build:

$ ./bin/docker compose build --workdir tests/compose-e2e/volume-test/
The new 'docker compose' command is currently experimental. To provide feedback or request new features please open issues at https://github.com/docker/compose-cli
[+] Building 0.0s (0/2)                                         
$  

Same with compose up, all the build output is masked (after rmi the images)

@gtardif
Copy link
Copy Markdown
Contributor

gtardif commented Dec 9, 2020

As a matter of fact, the build actually fails test added in #1039

@chris-crone
Copy link
Copy Markdown
Contributor Author

chris-crone commented Dec 9, 2020

Hmm.. I see a truncated output which is weird. I didn't change anything related to the stdout streaming so not sure what's causing this.

Running a build multiple times results in a different output. This leads me to think it's either a race or we're not flushing before the process dies.

@chris-crone chris-crone marked this pull request as draft December 10, 2020 13:25
Copy link
Copy Markdown
Contributor

@gtardif gtardif left a comment

Choose a reason for hiding this comment

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

Don't see issues with log being truncated, seems to something else with your local env @chris-crone (apple M1 ??)

@chris-crone
Copy link
Copy Markdown
Contributor Author

chris-crone commented Dec 10, 2020

I see this on Intel as well so have moved to draft :( Worse it seems that the images aren't saved to the daemon:

$ ./bin/docker compose up --workdir tests/compose-e2e/fixtures/volume-test/
The new 'docker compose' command is currently experimental. To provide feedback or request new features please open issues at https://github.com/docker/compose-cli
[+] Building 1.2s (6/6) FINISHED                                                                                                                                                                            
 => [volume-test_nginx internal] load build definition from Dockerfile                                                                                                                                 0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                    0.0s
 => [volume-test_nginx internal] load .dockerignore                                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                                                        0.0s
 => [volume-test_nginx2 internal] load build definition from Dockerfile                                                                                                                                0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                    0.0s
 => [volume-test_nginx2 internal] load .dockerignore                                                                                                                                                   0.0s
 => => transferring context: 2B                                                                                                                                                                        0.0s
 => [volume-test_nginx2 internal] load metadata for docker.io/library/nginx:latest                                                                                                                     1.1s
 => CACHED [volume-test_nginx 1/1] FROM docker.io/library/nginx@sha256:6b1daa9462046581ac15be20277a7c75476283f969cb3a61c8725ec38d3b01c3                                                                0.0s
[+] Running 0/2
 ⠋ volume-test_nginx_1   Creating                                                                                                                                                                      0.0s
 ⠋ volume-test_nginx2_1  Creating                                                                                                                                                                      0.0s
Error response from daemon: No such image: volume-test_nginx2:latest

Signed-off-by: Chris Crone <christopher.crone@docker.com>
Signed-off-by: Chris Crone <christopher.crone@docker.com>
@chris-crone
Copy link
Copy Markdown
Contributor Author

Found the issue, I have BUILDX_NO_DEFAULT_LOAD=1 set which is stopping the images from being exported

@chris-crone chris-crone marked this pull request as ready for review December 11, 2020 09:52
If a user has BUILDX_NO_DEFAULT_LOAD=1 set, then the images will
not be stored in the image store unless we explicitly say that they
must be.

Signed-off-by: Chris Crone <christopher.crone@docker.com>
@gtardif
Copy link
Copy Markdown
Contributor

gtardif commented Dec 11, 2020

@chris-crone did that explain the logs you didn't see as well ?

@chris-crone
Copy link
Copy Markdown
Contributor Author

did that explain the logs you didn't see as well ?

For some of the logs yes. The rest can be explained by the missing export.

@chris-crone chris-crone merged commit 59a94a0 into docker-archive:main Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

local Local context (moby)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants