-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Error initializing source docker://localhost/myapp:latest #7699
Comments
Do you have a registry running on |
No. I don't think. I never run registries on localhost. I didn't do it with Docker. Is it necessary with Podman?
On Mon, Sep 21, 2020 at 14:22, Valentin Rothberg<[email protected]> wrote:
Do you have a registry running on localhost?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
The yaml is referencing I assume the image exists on disk, does it? Podman behaves like Kubernetes where images with the |
Seems like it worked. Thanks. Interesting to see just a latest tag was confusing Podman.
On Mon, Sep 21, 2020 at 15:02, Valentin Rothberg<[email protected]> wrote:
The yaml is referencing image: localhost/myapp:latest which is why Podman tries to pull the image.
I assume the image exists on disk, does it? Podman behaves like Kubernetes where images with the latest tag are always being pulled. Changing the tag to something other than latest should solve the issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thanks for checking! @rhatdan @haircommander, I've seen frequent confusion around the |
There is another problem maybe needing its own issue. The mariadb container started by the yaml exits with 1 with this error:
Tried with a different image like mysql, but got the same error. Also tried changing |
Does the yaml work in K8s? |
I don't have access to a K8s environment on Fedora. I will try it on Mac's Kubernetes and post the update on that. |
I found that the problem was using the command key in the yaml file under containers. The containers are executable per se, so we don't need
How can I host-mount in the yaml without offending Selinux. Is there some option like |
@haircommander, do you know? Note that I am going to close the issue as the initial issue has been resolved. But we can continue the conversation here. |
@djnotes if you want to mount a volume onto the host, you can specify a hostpath volume: but that doesn't seem like the problem, as you don't have the volume specified in the yaml. that means this sanity check: have you tried disabling selinux and running to see if it's actually that? |
@haircommander sorry I forgot to update the code. The final yaml that has permission issue is this:
|
I generated a pod description using
podman generate kube mypod > mypod.yaml
from two containers (one local image and the other is mariadb). Now I want to deploy the pod using this description by usingpodman play kube mypod.yaml
, but I get the following error:Here's the content of mypod.yaml:
It seems podman does not allow pulling images from localhost. I tried changing some settings in /etc/containers/registries.conf like setting insecure=true and adding 127.0.0.1 to registries, but the issue was not solved.
The text was updated successfully, but these errors were encountered: