Skip to content

Commit 6ffa021

Browse files
johnstcnmafredri
authored andcommitted
chore(docs/docker.md): update docs for DinD with Coder (#346)
(cherry picked from commit 287080c)
1 parent feec224 commit 6ffa021

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

docs/docker.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
# Docker inside Envbuilder
22

33
There are a number of approaches you can use to have access to a Docker daemon
4-
from inside Envbuilder:
4+
from inside Envbuilder.
5+
6+
> Note: some of the below methods involve setting `ENVBUILDER_INIT_SCRIPT` to
7+
> work around the lack of an init system inside the Docker container.
8+
> If you are attempting to use the below approaches with [Coder](https://github.com/coder/coder),
9+
> you may need to instead add the relevant content of the init script to your
10+
> agent startup script in your template.
11+
> For example:
12+
> ```
13+
> resource "coder_agent" "dev" {
14+
> ...
15+
> startup_script = <<-EOT
16+
> set -eux -o pipefail
17+
> nohup dockerd > /var/log/docker.log 2>&1 &
18+
> EOT
19+
> }
20+
> ```
521
622
## Docker Outside of Docker (DooD)
723

0 commit comments

Comments
 (0)