Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- alpine
- debian
engine-version:
- 29-rc # latest rc
- 28 # latest
- 27 # latest - 1
- 25 # mirantis lts
Expand Down
5 changes: 4 additions & 1 deletion e2e/compose-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ services:
engine:
image: 'docker:${ENGINE_VERSION:-28}-dind'
privileged: true
command: ['--insecure-registry=registry:5000', '--experimental']
command:
- '--insecure-registry=registry:5000'
- '--experimental'
# - '--feature=containerd-snapshotter=false'
environment:
- DOCKER_TLS_CERTDIR=

Expand Down
6 changes: 5 additions & 1 deletion e2e/image/push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/docker/cli/internal/test/environment"
"github.com/docker/cli/internal/test/output"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
"gotest.tools/v3/fs"
"gotest.tools/v3/golden"
"gotest.tools/v3/icmd"
Expand Down Expand Up @@ -49,6 +50,8 @@ func TestPushAllTags(t *testing.T) {
9: output.Equals("v1.0: digest: sha256:e2e16842c9b54d985bf1ef9242a313f36b856181f188de21313820e177002501 size: 528"),
12: output.Equals("v1.0.1: digest: sha256:e2e16842c9b54d985bf1ef9242a313f36b856181f188de21313820e177002501 size: 528"),
})
fmt.Println("--------OUTPUT---------------")
fmt.Println(result.Stdout())
}

func TestPushWithContentTrust(t *testing.T) {
Expand Down Expand Up @@ -84,8 +87,9 @@ func TestPushQuietErrors(t *testing.T) {
result := icmd.RunCmd(icmd.Command("docker", "push", "--quiet", "nosuchimage"))
result.Assert(t, icmd.Expected{
ExitCode: 1,
Err: "An image does not exist locally with the tag: nosuchimage",
})
assert.Check(t, is.Contains(result.Stderr(), "does not exist"))
assert.Check(t, is.Contains(result.Stderr(), "nosuchimage"))
}

func TestPushWithContentTrustUnreachableServer(t *testing.T) {
Expand Down
4 changes: 4 additions & 0 deletions e2e/testdata/Dockerfile.connhelper-ssh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ COPY ./connhelper-ssh/entrypoint.sh /
EXPOSE 22
ENTRYPOINT ["/entrypoint.sh"]
# usage: docker run --privileged -e TEST_CONNHELPER_SSH_ID_RSA_PUB=$(cat ~/.ssh/id_rsa.pub) -p 22 $THIS_IMAGE

RUN mkdir -p /etc/docker \
&& echo '{"features": {"containerd-snapshotter": false}}' > /etc/docker/daemon.json

1 change: 1 addition & 0 deletions scripts/test/e2e/wait-on-daemon
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ while ! docker version > /dev/null; do
done

docker version
docker info
Loading