File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 11# Docker inside Envbuilder
22
33There 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
You can’t perform that action at this time.
0 commit comments