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

Fall back to build from Dockerfile when image not downloadable #526

Open
MartinLoeper opened this issue Dec 14, 2024 · 0 comments
Open

Fall back to build from Dockerfile when image not downloadable #526

MartinLoeper opened this issue Dec 14, 2024 · 0 comments

Comments

@MartinLoeper
Copy link

Is it possible with the current spec to configure that the devcontainer should be built from given Dockerfile if the specified image cannot be pulled?

As far as I understand, the "build" and "image" properties are mutually exclusive, i.e. the devcontainer is either "Image based" or "Dockerfile based" to say it in the words of the spec.

My usecase is to provide an escape hatch for unreliable internal docker registries. I want developers to be able to build their local devcontainers on their own machines in case the company's docker registry is unreachable for some reason.

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

No branches or pull requests

1 participant