Redhat Containers and Kubernetes EX180 UPDATED Actual Exam Questions and CORRECT Answers
0 view 0 purchase
Course
Redhat Containers and Kubernetes EX180
Institution
Redhat Containers And Kubernetes EX180
Redhat Containers and Kubernetes EX180
UPDATED Actual Exam Questions and
CORRECT Answers
search for images called nginx - CORRECT ANSWER- podman search nginx
run a container based on image nginx:latest with an environment variable DEBUG=TRUE -
CORRECT ANSWER- podman run -d -e DEBUG=TRUE nginx...
Redhat Containers and Kubernetes EX180
UPDATED Actual Exam Questions and
CORRECT Answers
search for images called nginx - CORRECT ANSWER- ✔✔podman search nginx
run a container based on image nginx:latest with an environment variable DEBUG=TRUE -
CORRECT ANSWER- ✔✔podman run -d -e DEBUG=TRUE nginx:latest
connect interactively to a running container called nginx - CORRECT ANSWER-
✔✔podman exec -it nginx /bin/bash
list all containers - both running and stopped - CORRECT ANSWER- ✔✔podman ps -a
list all running containers showing just ID and and image name - CORRECT ANSWER-
✔✔podman ps --format "{{.ID}} {{.IMAGE}}"
copy ./file.txt to /tmp in running container nginx - CORRECT ANSWER- ✔✔podman cp
./file.txt nginx:/tmp
start a container based on nginx:latest interactively, and override the starting command with
/bin/bash - CORRECT ANSWER- ✔✔podman run -it nginx:latest /bin/bash
, start a container based on nginx:latest, and map a host port of 8080 to port 80 in the container
- CORRECT ANSWER- ✔✔podman run -d -p 8080:80 nginx:latest
start a container based on nginx:latest with a name mynginx - CORRECT ANSWER-
✔✔podman run -d --name mynginx nginx:latest
run a container based on mysql:latest with the host folder /tmp/mysql mapped to
/var/lib/mysql - CORRECT ANSWER- ✔✔podman run -d -v /tmp/mysql:/var/lib/mysql
mysql:latest
add se linux context to /tmp/mysql prior to using as a volume - CORRECT ANSWER-
✔✔sudo semanage fcontext -a -t container_file_t '/tmp/mysql(/.*)?'
apply a previously applied se linux context to /tmp/mysql - CORRECT ANSWER- ✔✔sudo
restorecon -Rv /tmp/mysql
give mysql user (user/group 27) in a container, ownership of /tmp/mysql on the host -
CORRECT ANSWER- ✔✔podman unshare chown -R 27:27 /tmp/mysql
search connected repos for all tags for nginx images - CORRECT ANSWER- ✔✔podman
search nginx --all-tags
download the nginx:latest image - CORRECT ANSWER- ✔✔podman pull nginx:latest
save image nginx:latest to /tmp/nginx.zip - CORRECT ANSWER- ✔✔podman save -o
/tmp/nginx.zip nginx:latest
create an image nginx:1 from stopped container mynginx - CORRECT ANSWER-
✔✔podman commit mynginx nginx:1
apply a label nginx:1 to nginx:latest - CORRECT ANSWER- ✔✔podman tag nginx:latest
nginx:1
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller MGRADES. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $8.99. You're not tied to anything after your purchase.