100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHO 1: Containers and Kubernetes EX180V4K $7.99   Add to cart

Exam (elaborations)

RHO 1: Containers and Kubernetes EX180V4K

 3 views  0 purchase
  • Course
  • RHO 1
  • Institution
  • RHO 1

RHO 1: Containers and Kubernetes EX180V4K Sudo podman inspect -f '{{ .NetworkSettings.IPAddress }}' mysql-1 - answerComando para obtener la dirección IP del contenedor mysql-1. sudo chown -R 27:27 /var/local/mysql - answerComando para cambiar el propietario del directorio /var/local/mysql par...

[Show more]

Preview 2 out of 5  pages

  • October 21, 2024
  • 5
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • RHO 1
  • RHO 1
avatar-seller
sirjoel
©SIRJOEL EXAM SOLUTIONS
10/7/2024 11:03AM



RHO 1: Containers and Kubernetes
EX180V4K


Sudo podman inspect -f '{{ .NetworkSettings.IPAddress }}' mysql-1 - answer✔Comando para
obtener la dirección IP del contenedor mysql-1.

sudo chown -R 27:27 /var/local/mysql - answer✔Comando para cambiar el propietario del
directorio /var/local/mysql para el usuario mysql y el grupo mysql.

sudo semanage filecontext -a -t container_file_t '/var/local/mysql(/.*)?' - answer✔Comando para
aplicar el contexto SELinux adecuado para el directorio /var/local/mysql y su contenido.

sudo restorecon -Rv /var/local/mysql - answer✔Comando para aplicar la política de
contenedores de SELinux creada al directorio /var/local/mysql.

mysql -uuser1 -pmypa55 -P13306 -h workstation.lab.example.com items - answer✔Comando
para conectarse a la base de datos MSQL items desde el host de workstation.lab.example.com
con puerto 13306, usuario user1 y password mypa55.
sudo podman run -d --name=mysql-1 -v /var/local/mysql:/var/lib/mysql/data -p 13306:3306 -e
MYSQL_USER=user1 -e MYSQL_PASSWORD=mypa55 -e MYSQL_DATABASE=items -e
MYSQL_ROOT_PASSWORD=r00tpa55 rhscl/mysql-57-rhel7 - answer✔Comando para
implementar una instancia de contenedor MySQL con las siguientes características:
Nombre: mysql-1
Ejecutar como daemon: si
Volumen: desde la carpeta del host /var/local/mysql hasta la carpeta del contenedor
/var/lib/mysql/data
Imagen de contenedor: rhscl/mysql-57-rhel7
Reenvío de puertos: si, desde el puerto 13306 del host hasta el puerto 3306 del contenedor.
Variables de entorno:

, ©SIRJOEL EXAM SOLUTIONS
10/7/2024 11:03AM


-MYSQL_USER=user1
-MYSQL_PASSWORD=mypa55
-MYSQL_DATABASE=items
-MYSQL_ROOT_PASSWORD=r00tpa55

sudo podman exec -it mysql-1 /bin/bash - answer✔Comando para acceder al shell del contenedor
mysql-1.

sudo podman ps - answer✔Comando para verificar la lista de contenedores activos.

sudo podman stop mysql-1 - answer✔Comando para detener el contenedor mysql-1
correctamente.

sudo podman rm mysql-1 - answer✔Comando para eliminar el contenedor mysql-1 y liberar
recursos.

sudo podman search -f is-official=true docker.io/nginx - answer✔Comando para buscar la
imagen oficial docker.io/nginx.

sudo podman pull docker.io/nginx - answer✔Comando para extraer la imagen docker.io/nginx.

sudo podman images - answer✔Comando para enlistar las imágenes en el repositorio local.

sudo podman commit -a 'Miguel Garza' official-nginx do180/mynginx:v1.0 - answer✔Comando
para confirmar los cambios hechos en el contenedor official-nginx y crear otra imagen
do180/mynginx:v1.0 con los nuevos cambios con nombre de autor: Miguel Garza.

sudo podman rmi do180/mynginx:v1.0 - answer✔Comando para eliminar la imagen de
contenedor do180/mynginx:v1.0

sudo podman build -t do180/custom-apache . - answer✔Comando para compilar la imagen
personalizada de Apache ubicada en el directorio actual. Asígnele el nombre do180/custom-
apache.

FROM ubi7/ubi:7.7 - answer✔Instrucción con la que se inicia un Dockerfile si la imagen base es
ubi7/ubi:7.7

MAINTAINER Miguel Garza <mgarzago@redhat.com> - answer✔Instrucción para especificar
el autor Miguel Garza con correo mgarzago@redhat.com

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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 sirjoel. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $7.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75323 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling

Recently viewed by you


$7.99
  • (0)
  Add to cart