EX188 Networking And Compose Practice Question
An administrator creates a custom CNI network using 'podman network create mynet' and wants to assign a static IP address to a container upon creation. Which option achieves this?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
podman run --network mynet --ip 192.168.100.50 -d myimage
The --ip flag is used with 'podman run' on a user-defined bridge network to allocate a specific static IP address to the container interface.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
podman run --network mynet:192.168.100.50 -d myimage
Why it's wrong here
Colon syntax is not used for static IP assignment here.
- ✓
podman run --network mynet --ip 192.168.100.50 -d myimage
Why this is correct
--ip assigns a static IP on custom bridge networks.
- ✗
podman network connect --ip 192.168.100.50 mynet container_id
Why it's wrong here
While connect exists, assigning static IP at run is done via --ip directly or IPAM configurations.
- ✗
podman run --net-static-ip 192.168.100.50 -d myimage
Why it's wrong here
This flag does not exist.
About these practice questions
This EX188 question is part of Courseiva's 301-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Red Hat exam blueprint
This EX188 practice question is part of Courseiva's free Red Hat certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the EX188 exam.