Administracion De Contenedores Flashcards

1
Q

Cómo se crea un contenedor con podman

A

sudo podman run rhscl/httpd-24-rhel7

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Cómo se pueden listar los contenedores ejecutándose

A

sudo podman ps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Cual es la bandera para especificar el nombre de un contenedor

A

sudo podman —name NAME run…

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Cómo se ejecuta un comando cat en un contenedor con podman

A

sudo podman exec my-httpd-container cat /etc/hostname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Que bandera se usa para evitar colocar el ID del contenedor en comandos posteriores con podman

A

-l

sudo podman exec -l cat /etc/hostname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Cómo se listan todos los contenedores incluidos los offline

A

sudo podman ps -a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Cómo se muestra la metadata de un contenedor con podman

A

sudo podman inspect my-httpd-container

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Cómo se puede obtener el parámetro .NetworkSettings.IPAddress del contenedor my-httpd-container

A

sudo podman inspect \

> -f ‘{{ .NetworkSettings.IPAddress }}’ my-httpd-container

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Cómo se detiene el contenedor my-httpd-container

A

sudo podman stop my-httpd-container

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Cómo se mata un contenedor podman

A

sudo podman kill my-httpd-container

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Cómo se envía una

Señal SIGKILL a un contendor

A

sudo podman kill -s SIGKILL my-httpd-container

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Cómo se muestran los logs de un contendor con podman

A

sudo podman logs mysql-db

How well did you know this?
1
Not at all
2
3
4
5
Perfectly