Bug fix - Ignore build context path validation when it is not necessary#7564
Bug fix - Ignore build context path validation when it is not necessary#7564ulyssessouza merged 3 commits intodocker:masterfrom bartier:ignore-build-directory
Conversation
Signed-off-by: Vitor Anjos <vitorbartier@hotmail.com>
|
The CI check returned the errors below: I'm not sure how to fix this or how this relates to my PR. May anyone helps? :) |
|
It looks similar to #5780 but much simplified version and that exactly on what was pointed in https://github.com/docker/compose/pull/5780/files#r190403905 . Would be nice to see it merged!
That's ok. It just cannot find the image in the registry, then builds it from the commit. This is more interesting, since debian image has been pushed into registry, but not alpine. And, as I understand, related to https://docs.docker.com/registry/recipes/nginx. |
|
I made a update in this branch to make the CI pass. May anybody do a code review, please? :) As @zerozez pointed out, I focused on doing a simplified approach to fix the behavior explained in #7359 because PR 5780 - Code review had a discussion about it. |
|
Hi, will it also apply to docker-compose down? |
|
Hi, can you make this also apply to docker-compose down? |
|
Please apply this to docker-compose restart. |
Resolves #7359 #7363
Fixes #3513
PR summary :
--no-buildthen the build context path does not really need to exists. This allows scenarios where you want touse docker-compose only to spin up services with a compose .yml file with already available images in docker.
docker-compose pullthe build context path is not checked anymore because we are only pulling images instead of building them.