Skip to content

Commit

Permalink
chore(docs/docker.md): update docs for DinD with Coder (#346)
Browse files Browse the repository at this point in the history
(cherry picked from commit 287080c)
  • Loading branch information
johnstcn authored and mafredri committed Oct 2, 2024
1 parent feec224 commit 6ffa021
Showing 1 changed file with 17 additions and 1 deletion.
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

0 comments on commit 6ffa021

Please sign in to comment.