cancel
Showing results for 
Search instead for 
Did you mean: 
Robust993
Mission Specialist
Mission Specialist
  • 1,586 Views

Bulid image for container

Jump to solution

Hello all

 Can some one help 

It's about build image from url then name as montor i have used below command didn't work

wget url 

Podman build -t monitor .

Do i need to enter dir name or link after above command it didn't work  

1 Solution

Accepted Solutions
Tess
Flight Engineer
Flight Engineer
  • 1,524 Views

> Can some one help for my question today i falid in the exam ex200

The NDA you and us signed with Red Hat, does not allow us to discuss exam questions in detail. You would do well to rephrase your opening post.

That error is in no way at all related to registrations for Red Hat entitlements.

 

Putting that aside, as @cyb3rx says there's a lot wrong with your Dockerfile. It's missing the single most important line, the FROM line. Without that, there is no container image.  

View solution in original post

5 Replies
cyb3rx
Flight Engineer
Flight Engineer
  • 1,570 Views

rename the file that you got from wget to Dockerfile then execute

podman build -t monitor .

or you can the -f option here are some examples

$ podman build -f Containerfile.simple .

$ cat $HOME/Containerfile | podman build -f - .

 

please check this site for reference:

Podman documentation

 

Robust993
Mission Specialist
Mission Specialist
  • 1,557 Views

Hello 

 

Thanks for your replay

i am gettimg error in my lap looks like because my system not registered with an entitlement server is ithis right ? please correct me if im wrong 

also please let me know if you can help me how to practice such examples

1-

[root@Client ~]# mv Containerfile Dockerfile
[root@Client ~]# podman build -t monitor .
Error: no FROM statement found
[root@Client ~]#

2-

[root@Client ~]# podman build -f Containerfile.simple .
Error: no FROM statement found

[root@Client ~]# cat Containerfile.simple | podman build -f - .
Error: no FROM statement found

 

 

 

 

cyb3rx
Flight Engineer
Flight Engineer
  • 1,546 Views

it seems like there's some issue with your Dockerfile as it does not have FROM statement, you can try it with different Dockerfile

Tess
Flight Engineer
Flight Engineer
  • 1,525 Views

> Can some one help for my question today i falid in the exam ex200

The NDA you and us signed with Red Hat, does not allow us to discuss exam questions in detail. You would do well to rephrase your opening post.

That error is in no way at all related to registrations for Red Hat entitlements.

 

Putting that aside, as @cyb3rx says there's a lot wrong with your Dockerfile. It's missing the single most important line, the FROM line. Without that, there is no container image.  

Robust993
Mission Specialist
Mission Specialist
  • 1,511 Views

Thank you all appreciate your support and quck replaying 

Join the discussion
You must log in to join this conversation.