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: docs/advanced/7_docker/index.md
+54Lines changed: 54 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,29 @@ On the docker-compose, it is enough to uncomment the volume mount of the windmil
17
17
18
18
In the charts values of our [helm charts](https://github.com/windmill-labs/windmill-helm-charts), set `windmill.exposeHostDocker` to `true`
19
19
20
+
### Remote Docker Daemon
21
+
22
+
One possibility to use the docker daemon wiht k8s with containerd is to run a docker daemon in the same pod using "Docker-in-Docker" ( dind) Using the official image `docker:stable-dind`:
23
+
24
+
Here an example of a dind template to be adapted:
25
+
26
+
```yaml
27
+
apiVersion: v1
28
+
kind: Pod
29
+
metadata:
30
+
name: dind
31
+
spec:
32
+
containers:
33
+
- name: dind
34
+
image: 'docker:stable-dind'
35
+
command:
36
+
- dockerd
37
+
- --host=tcp://0.0.0.0:8000
38
+
securityContext:
39
+
privileged: true
40
+
```
41
+
42
+
20
43
## Use
21
44
22
45
The default code is as follows:
@@ -56,3 +79,34 @@ As a flow step:
56
79

57
80
58
81

82
+
83
+
## Use with Remote Docker Daemon
84
+
85
+
```bash
86
+
#!/bin/bash
87
+
88
+
set -ex
89
+
90
+
# The Remote Docker Daemon Address -> 100.64.2.97:8000
91
+
# In the example, 100.64.2.97 is my pod address.
92
+
93
+
DOCKER="docker -H 100.64.2.97:8000"
94
+
$DOCKER run --rm alpine /bin/echo "Hello $msg"
95
+
```
96
+
97
+
output
98
+
99
+
```log
100
+
+ DOCKER='docker -H 100.64.2.97:8000'
101
+
+ docker -H 100.64.2.97:8000 run --rm alpine /bin/echo 'Hello '
0 commit comments