Skip to content

chore(docs/docker.md): update docs for DinD with Coder #346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 12, 2024
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