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

Conversation

@andrewhsu
Copy link
Contributor

No description provided.

andrewhsu and others added 7 commits August 4, 2017 13:49
…i` instead of `rmi -f`

Because now the cli will always return 0 for `rmi -f`.

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Because now the cli will always return 0 for `rmi -f`.

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
…TestUpdateWithNanoCPUs

Signed-off-by: Victor Vieux <victorvieux@gmail.com>
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
To fix tests:
- DockerSwarmSuite.TestSwarmNetworkPluginV2
- DockerSwarmSuite.TestServiceLogs

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
Signed-off-by: Victor Vieux <victorvieux@gmail.com>

out, _, err := dockerCmdWithError("rmi", "-f", imgID)
// rmi -f should not delete image with running containers
out, _, err := dockerCmdWithError("rmi", imgID)
Copy link
Member

Choose a reason for hiding this comment

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

This is actually a bug; the change was too wide; see docker/cli#394

(pull request to fix is here: docker/cli#418)


// Try to remove the image of the running container and see if it fails as expected.
out, _, err := dockerCmdWithError("rmi", "-f", imageIds[0])
out, _, err := dockerCmdWithError("rmi", imageIds[0])
Copy link
Member

Choose a reason for hiding this comment

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

Same here

c.Assert(out, checker.Contains, name2+".2")
c.Assert(out, checker.Contains, name2+".3")
c.Assert(err, checker.NotNil)
c.Assert(out, checker.Contains, "no such service: to")
Copy link
Member

Choose a reason for hiding this comment

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

Alternatively, use the test I wrote at the time of the PR, but which could not be merged upstream due to not being able to update the CLI; moby/moby@4242aec

That test also verifies the new behaviour

if resp.StatusCode != http.StatusSwitchingProtocols {
resp.Body.Close()
return nil, fmt.Errorf("unable to upgrade to %s, received %d", proto, resp.StatusCode)
if err != httputil.ErrPersistEOF {
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps this should be separate from the other changes; this is a back port of moby/moby@7a53991 (moby/moby#34275) - "Fix panic in hijack"

@andrewhsu
Copy link
Contributor Author

no longer needed, because 17.07 is eol

@andrewhsu andrewhsu closed this Oct 5, 2017
@andrewhsu andrewhsu deleted the fix-tests-rc2 branch October 5, 2017 21:04
docker-jenkins pushed a commit that referenced this pull request Sep 4, 2018
docker-jenkins pushed a commit that referenced this pull request Mar 28, 2019
…stemd_resolved

[18.09 backport] Fix: network=host using wrong resolv.conf with systemd-resolved
Upstream-commit: 80e10316cd01832a0fe04bc7970569bf86c3e391
Component: engine
akrasnov-drv pushed a commit to drivenets/docker-ce that referenced this pull request Apr 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants