-
Notifications
You must be signed in to change notification settings - Fork 174
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
Zarf does not respect docker contexts #2674
Comments
Thanks for the issue @mjnagel! While, I'm not opposed to supporting this docker context's are more a feature of the CLI than the daemon. If we wanted to solve this we would have to get the url of the docker sock for that context.
2. The "DOCKER_CONTEXT" environment variable.
3. The current context as configured through the in "currentContext"
field in the CLI configuration file ("~/.docker/config.json"). |
@AustinAbro321 interesting mention of CLI vs daemon. I may have to validate and test out a few other tools, but I think in my experience docker contexts are typically honored by other tools. Definitely not familiar with complexity of this on the zarf side, but it would be a pretty nice QoL improvement - especially as mentioned in my case trying to use Docker over SSH. This works for the rest of my operations (k3d, docker builds, etc) but fails with zarf's local docker fallback. If there were any workarounds this might not be so bad but I'm unaware of a way to handle this outside of Zarf itself respecting my context. |
Re-running through previous testing steps, I am able to set my docker host this way to point to my docker over ssh host:
Docker CLI commands, k3d commands, etc all work. However when I try to use zarf expecting the local docker fallback to work I encounter this issue:
Perhaps the more troublesome problem here is that Zarf does not support docker over SSH for this local fallback - even if you put aside the context issue. |
I have ran into this too and if zarf worked with docker over SSH (even if just by setting DOCKER_HOST) that would be great. I like to use docker over ssh to a linux machine to test some amd64 only stuff from my arm64 mac. |
@mjnagel Could you make a separate issue for supporting docker over SSH |
@AustinAbro321 done, #2943 |
Environment
Device and OS: MBP, macOS
App version: v0.34.0
Kubernetes distro being used: k3d (not relevant here)
Other:
Steps to reproduce
I'm encounter an issue on my mac when I attempt to use the local docker fallback for a local image. Relevant piece of this is that my docker socket is provided by colima and is not the default path.
Expected result
Zarf respects my docker context/uses it (note my active context is colima here):
Actual Result
Zarf only considers the
DOCKER_HOST
environment variable:Severity/Priority
Low, by setting
DOCKER_HOST
to my active context I can make this work, although I don't believe I've been able to make docker-over-ssh work with the DOCKER_HOST env/zarf.The text was updated successfully, but these errors were encountered: