File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Docker inside Envbuilder
2
2
3
3
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
+ > ```
5
21
6
22
## Docker Outside of Docker (DooD)
7
23
You can’t perform that action at this time.
0 commit comments