-
Notifications
You must be signed in to change notification settings - Fork 19
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
isRunning fails when docker host responds with fully qualified image names #905
Comments
Would be great to reproduce this within a test-run. |
Steps to reproduce it:
opt, _ := localstack.WithClientFromEnv()
l, _ := localstack.NewInstance(opt)
if err := l.StartWithContext(ctx); err != nil {
log.Fatalf("Could not start localstack %v", err)
} To capture this in a test case, it would either need to run with a podman host or the moby client would have to be mocked. Not sure if you want to complicate the current test setup by that extent just for this edge case. |
I guess we would need actions/runner#505 for this |
🤔 looks like podman is preinstalled already |
On some OCI hosts (eg podman), the get container call responds with a fully qualified name: eg
docker.io/library/go-localstack:latest
. This fails the equality check inisRunning
which is expecting an unqualified name (eggo-localstack
). As a result calls toStart*
fail.An easy fix would be:
however that may have false positives.
The text was updated successfully, but these errors were encountered: