LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Containers (https://www.linuxquestions.org/questions/linux-containers-122/)
-   -   Attach image to a container (https://www.linuxquestions.org/questions/linux-containers-122/attach-image-to-a-container-4175717288/)

NewRH 09-29-2022 10:36 AM

Attach image to a container
 
Hello everyone,

I have just started to learn about container management in RHEL and I have a problem with attaching images. This is how I am writing the command, to launch a container with host port 10000 mapped to container port 80, attaching the latest version of ubi7 image:

podman run 10000:80 --name container1 ubi7

However, I get back a message prompting me to select another image. Choosing from the list of available images I get the following error message: Error: initializing source docker://registry.access.redhat.com/10000:80: reading manifest 80 in registry.access.redhat.com/10000: name unknown: Repo not found

I do not know how to solve this and attach an image I have already downloaded or the ubi7.

Thank you in advance!

MakeTopSite 05-18-2023 04:27 AM

Quote:

Originally Posted by NewRH (Post 6383384)
Hello everyone,

I have just started to learn about container management in RHEL and I have a problem with attaching images. This is how I am writing the command, to launch a container with host port 10000 mapped to container port 80, attaching the latest version of ubi7 image:

podman run 10000:80 --name container1 ubi7

However, I get back a message prompting me to select another image. Choosing from the list of available images I get the following error message: Error: initializing source docker://registry.access.redhat.com/10000:80: reading manifest 80 in registry.access.redhat.com/10000: name unknown: Repo not found

I do not know how to solve this and attach an image I have already downloaded or the ubi7.

Thank you in advance!

Can you please confirm you have enough privileges ? Any message in logs ? Did you try disable firewall ?

divyashree 08-13-2023 06:02 AM

Quote:

Originally Posted by NewRH (Post 6383384)
Hello everyone,

I have just started to learn about container management in RHEL and I have a problem with attaching images. This is how I am writing the command, to launch a container with host port 10000 mapped to container port 80, attaching the latest version of ubi7 image:

podman run 10000:80 --name container1 ubi7

However, I get back a message prompting me to select another image. Choosing from the list of available images I get the following error message: Error: initializing source docker://registry.access.redhat.com/10000:80: reading manifest 80 in registry.access.redhat.com/10000: name unknown: Repo not found

I do not know how to solve this and attach an image I have already downloaded or the ubi7.

Thank you in advance!

Reinstall podman and try again

sundialsvcs 08-16-2023 07:59 AM

"Repo not found" suggests to me some kind of problem in the text of a configuration file which the command must reference in order to try to find what you are looking for. (He said, waving his hands in the air ...) Not a "privilege" or "firewall" issue.


All times are GMT -5. The time now is 10:16 PM.