Skip to content

Commit 9263acb

Browse files
tcp-port opt to expose Docker API to a local TCP address
1 parent a0fc18f commit 9263acb

3 files changed

Lines changed: 31 additions & 34 deletions

File tree

.github/SUPPORT.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,31 @@ jobs:
339339
name: List contexts
340340
run: |
341341
docker context ls
342+
343+
tcp:
344+
runs-on: ${{ matrix.os }}
345+
strategy:
346+
fail-fast: false
347+
matrix:
348+
os:
349+
- ubuntu-latest
350+
#- macos-14 # no virt: https://github.com/docker/actions-toolkit/issues/317
351+
- macos-13
352+
- windows-latest
353+
steps:
354+
-
355+
name: Checkout
356+
uses: actions/checkout@v4
357+
-
358+
name: Set up Docker
359+
id: setup_docker
360+
uses: ./
361+
with:
362+
version: ${{ env.DOCKER_VERSION }}
363+
tcp-port: 2378
364+
-
365+
name: Check docker info through TCP
366+
run: |
367+
docker info
368+
env:
369+
DOCKER_HOST: ${{ steps.setup_docker.outputs.tcp }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
steps:
5252
-
5353
name: Set up Docker
54-
uses: step-security/ghaction-setup-docker@v3
54+
uses: step-security/ghaction-setup-docker@4
5555
```
5656
5757
### Daemon configuration
@@ -73,7 +73,7 @@ jobs:
7373
steps:
7474
-
7575
name: Set up Docker
76-
uses: step-security/ghaction-setup-docker@v3
76+
uses: step-security/ghaction-setup-docker@4
7777
with:
7878
daemon-config: |
7979
{
@@ -101,7 +101,7 @@ jobs:
101101
steps:
102102
-
103103
name: Set up Docker
104-
uses: step-security/ghaction-setup-docker@v3
104+
uses: step-security/ghaction-setup-docker@4
105105
env:
106106
LIMA_START_ARGS: --cpus 4 --memory 8
107107
```

0 commit comments

Comments
 (0)