Bug 2158376

Summary: Building, running, and managing containers: example Containerfile has a single line, instead of multiple lines
Product: Red Hat Enterprise Linux 9 Reporter: Christian Horn <chorn>
Component: DocumentationAssignee: Gabriela Nečasová <gnecasov>
Documentation sub component: default QA Contact: RHEL DPM <rhel-docs>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: unspecified    
Priority: medium CC: rhel-docs
Version: 9.0Keywords: Documentation
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-10 00:57:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Horn 2023-01-05 09:04:12 UTC
Document URL: 
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/building_running_and_managing_containers/index#using-the-ubi-init-images_assembly_adding-software-to-a-ubi-container

Section Number and Name: 
6.1. Using the UBI init images

Describe the issue: 
The section has
"FROM registry.access.redhat.com/ubi9/ubi-init RUN dnf -y install httpd;[..]"
which is not a proper syntax.  Putting that in a Containerfile and running 'podman build .' leads to error:

Error: FROM requires either one argument, or three: FROM <source> [as <name>]

Suggestions for improvement: 
Separate lines, i.e.
```
FROM registry.access.redhat.com/ubi9/ubi-init 
RUN dnf -y install httpd; dnf clean all; systemctl enable httpd; 
RUN echo "Successful Web Server Test" 
[...]
```

Comment 1 Gabriela Nečasová 2023-01-09 12:50:11 UTC
Hello Christian, 
Thank you very much for letting us know. 
I am working on it. As soon as it's done, I'll get back to you.

Comment 3 Christian Horn 2023-01-10 00:57:36 UTC
Great, verified for rhel8 and rhel9.
closing CURRENTRELEASE.