Skip to content

Commit

Permalink
socket proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Mar 11, 2024
1 parent 3760310 commit fb9fb01
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions action_examples.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ actions:
include::snippit_container_socket.adoc[]
[#action-container-proxy]
==== Using the Docker proxy
You can use a docker socket proxy as an additional security measure and as an alternative to mounting the docker socket directly.
Assuming your docker socket proxy is running as `myproxy` running on port 1028;
[source,yaml]
----
actions:
- title: Stop container
shell: DOCKER_HOST=myproxy:1028 docker stop mycontainer
----
[#action-service]
=== Restart a systemd service
Expand Down Expand Up @@ -70,6 +84,8 @@ include::actionHeader.adoc[]
Powershell requires `pwsh` to execute commands.
[source,yaml]
.`config.yaml`
....
actions:
- title: Run Powershell Script:
Expand Down

0 comments on commit fb9fb01

Please sign in to comment.