Whats the right way to use my own private image and repo w/ devcontainer?
whats the right way to authenticate w/ my private image and repo from github in a docker devcontainer?
5 Replies
What are you creating this issue for?
@bryan_3mavericks see
- https://github.com/coder/envbuilder/blob/main/docs/container-registry-auth.md
- https://github.com/coder/envbuilder/blob/main/docs/git-auth.md
TL;DR for the image registry, use
ENVBUILDER_DOCKER_CONFIG_BASE64
or mount to /.envbuilder/config.json
for repo it depends on whether you're using HTTP or SSH to clone the repo
We are also shifting to a new devcontainer model without envbuilder
(currently in early access) that should help eliminate this type of issues.
See https://coder.com/docs/user-guides/devcontainers if interested, though you shouldn't assume it's stable, i would recommend that you migrate your template to it and play with it a bit, just be aware that it might explode (it shouldn't). If it does, please let us know!This documentation: https://coder.com/docs/user-guides/devcontainers
does not provide an example that I can readily pick and use, do you have one?
Dev Containers Integration | Coder Docs
Run containerized development environments in your Coder workspace using the dev containers specification.
Thanks. I have forwarded the feedback to the relevant team.