mirror of
https://github.com/moby/moby.git
synced 2025-07-30 18:23:29 +03:00
Block Windows images on Linux
Signed-off-by: Darren Stahl <darst@microsoft.com>
This commit is contained in:
@ -272,3 +272,10 @@ func (s *DockerSuite) TestPullLinuxImageFailsOnWindows(c *check.C) {
|
||||
_, _, err := dockerCmdWithError("pull", "ubuntu")
|
||||
c.Assert(err.Error(), checker.Contains, "cannot be used on this platform")
|
||||
}
|
||||
|
||||
// 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")
|
||||
c.Assert(err.Error(), checker.Contains, "cannot be used on this platform")
|
||||
}
|
||||
|
Reference in New Issue
Block a user