Docker Flashcards

1
Q

Docker info

A

información sobre el uso de Docker en el equipo

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

Docker pull imagen

A

nos descarga una imagen del hub docker pull Jenkins

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

Docker version

A

version del Runtime Docker

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

Docker ps

A

muestra un listado de los contenedores del sistema

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

Docker ps -a

A

muestra todos los contenedores

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

Docker run imagen

A

arrancar un nuevo contenedor en base a una imagen [Docker run -p 8080:8080 -p 50000:50000 jenkins (arranca el contenedor con esos puertos HOST:CONTAINER) ]

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

Docker create NombreImagen

A

crea un contenedor, pero no lo arranca

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

Docker start/stop id_del_contenedor

A

arrancar y parar un contenedor)

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

Docker build -t NombreImagen

A

TagImagen crea una imagen a partir del fichero Dockerfile situado en el directorio actual

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

Docker images

A

mostrar las imágenes que tenemos disponibles)

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

Docker attach id_del_contenedor

A

unirse a un contenedor en ejecucion)

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

Docker rm id_del_contenedor

A

borrar contenedor docker rm 9f215ed0b0d3

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

Docker rmi id_de_la_imagen

A

borrar imágenes docker rmi 7a86f8ffcb25

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

Docker volume create Nombre_volumen

A

Crear volumen

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

Docker commit

A

Sirve como para hacer un snapshot. Una vez que tienes configurado todo a tu gusto configurado. Es como generar una imagen.

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

Docker exec

A

ejecutar un comando contra un contenedor en ejecución) docker exec -it centos bash (entramos en el bash del contenedor)