-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
RemoveNonTaggedImages is not working because image gets latest
tag when not specified
#190
Comments
Thanks for reporting this bug! - I'll have a check and a fix this weekend. Cheers, |
It seems that The only way I can think of is that you use: _compositeService = new Builder()
.UseContainer()
.FromComposeFile(dockerComposePath)
.RemoveOrphans()
.RemoveAllImages()
.ForceBuild()
.WaitForHttp("my-api", $"{confirmUrl}/courses",
continuation: (response, _) => response.Code != HttpStatusCode.OK ? 5000 : 0)
.Build()
.Start(); Pleas let me know, if you got any other workaround. Cheers, |
@szczepanbh Yes, that is true that I do add tags to images when using standard docker client build. However, as you use the docker-compose it will not execute any of those commands instead it will do a ComposeUp command in the Compose.cs. In essense, if you'd do a docker-compose up in your folder (manually using If you have any insights or tips of how to use docker-compose without it auto-apply latest, I would be super happy to incorporate that into the library. Cheers, |
You are right @mariotoffia |
@szczepanbh I'm closing this for now, if you come across a way to not applying label., please let me know so I can incorporate that. Cheers, |
I'm not specifying a tag for my image in
docker-compose.yml
After running builder with
docker-compose.yml
file like thismy image
my-api
has taglatest
so
RemoveNonTaggedImages()
which is adding--rmi local
todocker-compose down
is not removing this image.The text was updated successfully, but these errors were encountered: