Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion docs/docker.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
# Docker inside Envbuilder

There are a number of approaches you can use to have access to a Docker daemon
from inside Envbuilder:
from inside Envbuilder.

> Note: some of the below methods involve setting `ENVBUILDER_INIT_SCRIPT` to
> work around the lack of an init system inside the Docker container.
> If you are attempting to use the below approaches with [Coder](https://github.com/coder/coder),
> you may need to instead add the relevant content of the init script to your
> agent startup script in your template.
> For example:
> ```
> resource "coder_agent" "dev" {
> ...
> startup_script = <<-EOT
> set -eux -o pipefail
> nohup dockerd > /var/log/docker.log 2>&1 &
> EOT
> }
> ```

## Docker Outside of Docker (DooD)

Expand Down