-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Conversation
…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) |
There was a problem hiding this comment.
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]) |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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"
|
no longer needed, because 17.07 is eol |
Merged with https://github.com/seemethere/unir Upstream-commit: 17050de Component: packaging
…stemd_resolved [18.09 backport] Fix: network=host using wrong resolv.conf with systemd-resolved Upstream-commit: 80e10316cd01832a0fe04bc7970569bf86c3e391 Component: engine
No description provided.