mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Accept platform spec on container create
This enables image lookup when creating a container to fail when the reference exists but it is for the wrong platform. This prevents trying to run an image for the wrong platform, as can be the case with, for example binfmt_misc+qemu. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
@@ -65,7 +65,7 @@ func (s *DockerSuite) TestContainersAPICreateMountsBindNamedPipe(c *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
nil, name)
|
||||
nil, nil, name)
|
||||
assert.NilError(c, err)
|
||||
|
||||
err = client.ContainerStart(ctx, name, types.ContainerStartOptions{})
|
||||
|
||||
Reference in New Issue
Block a user