We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ba270 commit 7dffc46Copy full SHA for 7dffc46
tests/integration/models_images_test.py
@@ -28,6 +28,15 @@ def test_build_with_error(self):
28
assert str(cm.exception) == ("Unknown instruction: "
29
"NOTADOCKERFILECOMMAND")
30
31
+ def test_build_with_multiple_success(self):
32
+ client = docker.from_env(version=TEST_API_VERSION)
33
+ image = client.images.build(tag='some-tag', fileobj=io.BytesIO(
34
+ "FROM alpine\n"
35
+ "CMD echo hello world".encode('ascii')
36
+ ))
37
+ self.tmp_imgs.append(image.id)
38
+ assert client.containers.run(image) == b"hello world\n"
39
+
40
def test_list(self):
41
client = docker.from_env(version=TEST_API_VERSION)
42
image = client.images.pull('alpine:latest')
0 commit comments