Skip to content

Conversation

@AkihiroSuda
Copy link
Member

@AkihiroSuda AkihiroSuda commented Dec 3, 2020

Follow-up to #41688.

Also updates containerd: #41688 (comment)
EDIT: by @tiborvass, see #41745 (comment)

vendor.conf Outdated
Copy link
Member

Choose a reason for hiding this comment

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

I don't see a change in go.mod for buildkit, which is still at 0edc412565dc - perhaps do this separate?

@AkihiroSuda
Copy link
Member Author

CI seems hitting a regression?

=== RUN   TestDockerSuite/TestBuildEmptyEntrypoint
    --- FAIL: TestDockerSuite/TestBuildEmptyEntrypoint (0.19s)
        docker_cli_build_test.go:1709: assertion failed: 
            Command:  /usr/local/cli/docker build -t testbuildentrypoint -
            ExitCode: 1
            Error:    exit status 1
            Stdout:   Sending build context to Docker daemon  2.048kB

            
            Stderr:   Error response from daemon: dockerfile parse error line 2: ENTRYPOINT requires at least one argument
            
            
            Failures:
            ExitCode was 1 expected 0
            Expected no error

@thaJeztah
Copy link
Member

Looks like that test was originally added in #7806 (78a847a)

@thaJeztah
Copy link
Member

Regression introduced in moby/buildkit@174bcf8 (moby/buildkit#1862)

@thaJeztah
Copy link
Member

I opened moby/buildkit#1874 to revert the change

@tiborvass
Copy link
Contributor

@AkihiroSuda Looks like the only containerd changes potentially affecting docker are containerd/containerd@126b35ca4 and containerd/containerd@fd01744a0. I'd rather get in the buildkit vendor to get the fix in, but I don't think it's that important to have containerd dependency update for this next release. We can update containerd dependencies here and in buildkit when we need it. Let me know if I'm missing something.

@tiborvass
Copy link
Contributor

Updated to bring in the new buildkit fix from moby/buildkit#1874 and reverted the containerd bump in this PR.

@tiborvass tiborvass changed the title vendor: BuildKit v0.8.0 vendor: BuildKit 950603da215ae03b843f3f66fbe86c4876a6f5a1 Dec 3, 2020
vendor.conf Outdated
Copy link
Member

Choose a reason for hiding this comment

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

looks like you removed the comment

Copy link
Contributor

Choose a reason for hiding this comment

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

I think i mixed the two, i wanted to remove it for buildkit not containerd.

vendor.conf Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Looks like there's no v0.8 branch yet, so wondering if this would be v0.8.1-dev ?

moby/buildkit@v0.8.0...950603d

Copy link
Contributor

Choose a reason for hiding this comment

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

generally speaking I believe -dev is not derived from patch number versions.

Copy link
Member

Choose a reason for hiding this comment

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

that's correct, this is more of a "manual" indication; alternatively v0.8.0-4-g950603da;

git checkout 950603da215ae03b843f3f66fbe86c4876a6f5a1
git describe --tags --match 'v*'
v0.8.0-4-g950603da

Copy link
Member Author

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks @tiborvass @thaJeztah

LGTM, bu I can't click "Approve" because this PR was initially my own

@tiborvass tiborvass merged commit c40bef9 into moby:master Dec 5, 2020
@lbndev
Copy link

lbndev commented Dec 9, 2020

Hello,

I've just ran "apt-get upgrade" on my CI, which upgraded docker to "Docker version 20.10.0, build 7287ab3".
Now builds are not passing anymore ("dockerfile parse error line xxx: ENTRYPOINT requires at least one argument") when the Dockerfile attempts to reset the entrypoint from the parent image using ENTRYPOINT [].

Probably the original commit made it into the release, but not the revert ? Or maybe it's just the packages on the apt repository which haven't been updated ? I'm installing from deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable

I'll revert to 19.03 for now.

Thanks

@thaJeztah
Copy link
Member

@lbndev can you open a ticket with full output of docker info and docker version and an example Dockerfile if possible?

Trying to reproduce, but I don't see this problem;

DOCKER_BUILDKIT=1 docker build -t foo -<<'EOF'
FROM busybox
ENTRYPOINT []
EOF

[+] Building 0.1s (5/5) FINISHED
 => [internal] load build definition from Dockerfile                                                                               0.0s
 => => transferring dockerfile: 64B                                                                                                0.0s
 => [internal] load .dockerignore                                                                                                  0.0s
 => => transferring context: 2B                                                                                                    0.0s
 => [internal] load metadata for docker.io/library/busybox:latest                                                                  0.0s
 => [1/1] FROM docker.io/library/busybox                                                                                           0.0s
 => => resolve docker.io/library/busybox:latest                                                                                    0.0s
 => exporting to image                                                                                                             0.0s
 => => exporting layers                                                                                                            0.0s
 => => writing image sha256:c6301af1809013800e3d2fefe42a9a469ddd828bbfe61a23d84dc25f08c9a731                                       0.0s
 => => naming to docker.io/library/foo                                                                                             0.0s


DOCKER_BUILDKIT=0 docker build -t foo -<<'EOF'
FROM busybox
ENTRYPOINT []
EOF

Sending build context to Docker daemon  2.048kB
Step 1/2 : FROM busybox
 ---> 1c35c4412082
Step 2/2 : ENTRYPOINT []
 ---> Running in e6263564cd8a
Removing intermediate container e6263564cd8a
 ---> 0fe82f88eb6e
Successfully built 0fe82f88eb6e
Successfully tagged foo:latest

@lbndev
Copy link

lbndev commented Dec 10, 2020

@lbndev can you open a ticket with full output of docker info and docker version and an example Dockerfile if possible?

Done. Please see #41770.
Thanks @thaJeztah

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

Successfully merging this pull request may close these issues.

4 participants