You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/testcontainers/core/container.py
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -39,15 +39,11 @@ class DockerContainer:
39
39
40
40
Args:
41
41
image: The name of the image to start.
42
-
docker_client_kw: Dictionary with arguments that will be passed to the
43
-
docker.DockerClient init.
42
+
docker_client_kw: Dictionary with arguments that will be passed to the docker.DockerClient init.
44
43
command: Optional execution command for the container.
45
44
name: Optional name for the container.
46
-
ports: Ports to be exposed by the container. The port number will be
47
-
automatically assigned on the host, use
48
-
:code:`get_exposed_port(PORT)` method to get the port number on the host.
49
-
volumes: Volumes to mount into the container. Each entry should be a tuple with
50
-
three values: host path, container path and. mode (default 'ro').
45
+
ports: Ports to be exposed by the container. The port number will be automatically assigned on the host, use :code:`get_exposed_port(PORT)` method to get the port number on the host.
46
+
volumes: Volumes to mount into the container. Each entry should be a tuple with three values: host path, container path and mode (default 'ro').
51
47
network: Optional network to connect the container to.
52
48
network_aliases: Optional list of aliases for the container in the network.
0 commit comments