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 6050ce3 commit b3abc1bCopy full SHA for b3abc1b
.github/workflows/docker_test.yml
@@ -0,0 +1,38 @@
1
+name: Test Docker on GitHub Actions
2
+
3
+on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - master
8
9
+jobs:
10
+ push_container:
11
+ runs-on: ubuntu-latest
12
+ services:
13
+ docker:
14
+ image: docker:dind
15
+ options: --privileged
16
+ ports:
17
+ - 2375:2375
18
+ container:
19
+ image: ubuntu:latest
20
+ steps:
21
+ - name: Checkout
22
+ uses: actions/checkout@v4
23
24
+ - name: Install Docker
25
+ run: |
26
+ apt-get update
27
+ apt-get install -y docker.io
28
29
+ - name: Test connection
30
31
32
+ apt-get install -y iputils-ping
33
+ ping -c 3 docker
34
35
+ - name: Test Docker
36
37
+ docker version
38
+ docker info
0 commit comments