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
This makes it possible to target an existing docker container from the
command line without using the `docker_container_id` host data variable.
Additionally this changes the disconnect behaviour to only commit and
stop the container when starting with an image. When executing against
a container we leave it as-is.
Copy file name to clipboardExpand all lines: docs/connectors.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,22 +41,27 @@ pyinfra @local ...
41
41
42
42
## `@docker`
43
43
44
+
The `@docker` connector allows you to build Docker images, or modify running Docker containers, using ``pyinfra``. You can pass either an image name or existing container ID:
44
45
45
-
The `@docker` connector allows you to build Docker containers using pyinfra.
46
+
+ Image - will create a container from the image, execute operations and save into a new image
47
+
+ Existing container ID - will simply execute operations against the container, leaving it up afterwards
46
48
47
49
```sh
48
50
# A Docker base image must be provided
49
51
pyinfra @docker/alpine:3.8 ...
50
52
51
53
# pyinfra can run on multiple Docker images in parallel
0 commit comments