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
Build image if "--build" is passed, alternatively pull image from registry #6086
Comments
--build
is set, alternatively pull image from registry--build
is set, alternatively pull image from registry
--build
is set, alternatively pull image from registry
What you propose changes existing behaviour, right? If you use
It instructs to |
Maybe there is an alternative way of implementing this feature. So that you can choose between pulling and building the image. Maybe over an extra option? Something like:
And then you could run something like |
Don't believe this is up for being implemented. See this related issue: #3574 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it had not recent activity during the stale period. |
Feature Request: Build image if
--build
is passed, alternatively pull image from registryI don't know if this is working yet, but it would be a great feature, if you could toggle between building a image and pulling it from the registry.
So what i mean is that if you provide the
--build
parameter, docker compose should build the image from a Dockerfile, and if no--build
is passed, the registry image (image: registry.docker.com/bla
) will be used.So for example i would use this
docker-compose.yml
file:And the Dockerfile would be sitting in
docker/devserver
Output of "docker-compose version"
Output of "docker version"
The text was updated successfully, but these errors were encountered: