-
Notifications
You must be signed in to change notification settings - Fork 273
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
Unable to query registry for image status deploying using Microk8s in Fedora. #1723
Comments
Thanks for the report @sriveros95! We will investigate. We should also get those automated tests for microk8s up and running... |
Can you elaborate on "I use sudo for runing docker commands"? I don't know for sure that it is, but I'm wondering if that's somehow related. |
Thank you @edvald ! Well I've seen mostly people allow docker to run without sudoing, but Fedora and others dont quite recommend that . Why we don't let non-root users run Docker in CentOS, Fedora, or RHEL So everytime I run something with docker y do |
I see. That does make sense I suppose, but it's not something we've accounted for in our code. I'm not quite sure how we might accommodate this actually, since we don't really want to advise running Garden as root, and I'm not sure if (or even how) it would be advisable for Garden to run docker commands with sudo. So for now we basically require the ability to run docker commands without sudo when using a local docker instance. Of course you could use in-cluster building (https://docs.garden.io/guides/in-cluster-building), which does away with the local docker requirement entirely. It's not something we've explicitly tested on microk8s but I know that does work on minikube and Docker Desktop so it's worth a shot, and we're happy to help work that out if you find any issues. And of course, if you have the option to run a remote cluster for your development that may be good, just depends on your setup and requirements. In any case, interesting, and maybe this requirement is something we should explicitly document if this is a common restriction. |
I will take a look at in-cluster building. Maybe people that sudo docker should sudo garden, unless well its unfeasible as you say you "don't really want to advise running Garden as root," I tried but I havent looked at microk8s with sudo so when I sudo garden It doesnt try microk8s.kubectl but normal kubectl. Will keep playing as it seems an amazing tool |
This seems to be a problem with the use of the experimental docker command While debugging garden i found that the following code in // Non-zero exit code can both mean the manifest is not found, and any other unexpected error
if (res.code !== 0 && !res.output.includes("no such manifest")) {
throw new RuntimeError(`Unable to query registry for image status: ${res.output}`, {
command: "docker " + args.join(" "),
output: res.output,
})
} did not work as expected, since The |
@edvald This is a major blocker in our project, since we are only able to deploy using our version. Were you able to look into this issue? |
Yes! #1729, hoping to release this tomorrow |
It turned out that |
Okay wierd, since for us the same error occurs with our production cluster (so not microk8s). Should i open another issue then with the above mentioned solution? |
Oh I see. Yeah, that looks to be a separate issue then. Could you file another issue with some info about your setup? I'll try and get that sorted asap. |
This issue has been automatically marked as stale because it hasn't had any activity in 60 days. It will be closed in 14 days if no further activity occurs (e.g. changing labels, comments, commits, etc.). Please feel free to tag a maintainer and ask them to remove the label if you think it doesn't apply. Thank you for submitting this issue and helping make Garden a better product! |
Bug
Current Behavior
Followed instructions for installing on Linux (Fedora 30) using MicroK8s.
Following instructions for Demo Project running garden deploy on the project root I get:
And error.log:
Expected behavior
Deploy
Reproducible example
https://docs.garden.io/example-projects/demo-project
Additional context
I use sudo for runing docker commands
Your environment
garden version
0.11.8
kubectl version
microk8s.kubectl version
sudo docker version
The text was updated successfully, but these errors were encountered: