Use current windows servercore image
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com> (cherry picked from commit aad7e9797b2e9a980b28d7d77bc119cb4b7e57dc) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 04d0295c0cdfe3e67ab51ca611e3a7dd8a49b668 Component: engine
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
647deceb07
commit
2bb8a5be97
@ -266,12 +266,12 @@ func (s *DockerHubPullSuite) TestPullClientDisconnect(c *check.C) {
|
||||
func (s *DockerSuite) TestPullLinuxImageFailsOnWindows(c *check.C) {
|
||||
testRequires(c, DaemonIsWindows, Network)
|
||||
_, _, err := dockerCmdWithError("pull", "ubuntu")
|
||||
assert.ErrorContains(c, err, "no matching manifest")
|
||||
assert.ErrorContains(c, err, "no matching manifest for windows")
|
||||
}
|
||||
|
||||
// Regression test for https://github.com/docker/docker/issues/28892
|
||||
func (s *DockerSuite) TestPullWindowsImageFailsOnLinux(c *check.C) {
|
||||
testRequires(c, DaemonIsLinux, Network)
|
||||
_, _, err := dockerCmdWithError("pull", "microsoft/nanoserver")
|
||||
assert.ErrorContains(c, err, "cannot be used on this platform")
|
||||
_, _, err := dockerCmdWithError("pull", "mcr.microsoft.com/windows/servercore:ltsc2019")
|
||||
assert.ErrorContains(c, err, "no matching manifest for linux")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user