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 e14b952 commit 287080cCopy full SHA for 287080c
docs/docker.md
@@ -1,7 +1,23 @@
1
# Docker inside Envbuilder
2
3
There are a number of approaches you can use to have access to a Docker daemon
4
-from inside Envbuilder:
+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
21
22
## Docker Outside of Docker (DooD)
23
0 commit comments