Skip to content
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

chore: add docs re docker inside envbuilder-built-envs #191

Merged
merged 4 commits into from
May 15, 2024
Merged

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented May 15, 2024

Fixes #25

TODO: add equivalent kubectl invocations

@johnstcn johnstcn self-assigned this May 15, 2024
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

docs/docker.md Show resolved Hide resolved
docs/docker.md Outdated
ghcr.io/coder/envbuilder:latest
```

This can also be accomplished using the [`docker-in-docker` Devcontainer feature](https://github.com/devcontainers/features/tree/main/src/docker-in-docker).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just off the top of my head, this won't work OOTB, envbuilder doesn't run the entrypoint defined here:

https://github.com/devcontainers/features/blob/67c10a660868260c284b02f2878dcfdcfd91279f/src/docker-in-docker/devcontainer-feature.json#L60

Mounts may also require special consideration. 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the custom entrypoint is still required here. 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should point it out here, otherwise we open ourselves up to support requests for feature X not working.

Later on, we should think about how we can support launching these entrypoints from envbulider.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a separate example 03_dind_feature for this. Works fine with volume mounts as far as I tested, too.

docs/docker.md Outdated Show resolved Hide resolved
examples/docker/02_dind/Dockerfile Outdated Show resolved Hide resolved
examples/docker/03_dind_rootless/Dockerfile Outdated Show resolved Hide resolved
examples/docker/03_dind_rootless/Dockerfile Outdated Show resolved Hide resolved
@johnstcn johnstcn merged commit 16a5ebb into main May 15, 2024
3 checks passed
@johnstcn johnstcn deleted the cj/docs/dind branch May 15, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: How to run docker in docker with envbuilder
2 participants