jrodriiguezg/grape-malbec
Updated
instruction
stringlengths 43
144
| cmd
stringlengths 9
98
|
|---|---|
Contexto: ['pwd=/home', 'ls=...'] | Levanta un contenedor de nginx.
|
docker run -d nginx
|
Contexto: ['pwd=/home', 'ls=...'] | Arranca una instancia de redis.
|
docker run -d redis
|
Contexto: ['pwd=/tmp', 'ls=...'] | Corre un ubuntu interactivo.
|
docker run -it ubuntu bash
|
Contexto: ['pwd=/opt', 'ls=...'] | Inicia el contenedor 'mi-web'.
|
docker start mi-web
|
Contexto: ['pwd=/var', 'ls=...'] | Detén el contenedor 'db'.
|
docker stop db
|
Contexto: ['pwd=/home', 'ls=...'] | Para la base de datos.
|
docker stop database
|
Contexto: ['pwd=/tmp', 'ls=...'] | Tumba el servicio 'api'.
|
docker stop api
|
Contexto: ['pwd=/home', 'ls=...'] | Reinicia el proxy.
|
docker restart proxy
|
Contexto: ['pwd=/opt', 'ls=...'] | Haz un restart de 'worker'.
|
docker restart worker
|
Contexto: ['pwd=/home', 'ls=...'] | Mata el contenedor colgado.
|
docker kill container_id
|
Contexto: ['pwd=/home', 'ls=...'] | Fuerza la detención de 'app'.
|
docker kill app
|
Contexto: ['pwd=/home', 'ls=...'] | Corre hello-world para probar.
|
docker run hello-world
|
Contexto: ['pwd=/var', 'ls=...'] | Ejecuta un python de usar y tirar (rm).
|
docker run --rm python:3.9
|
Contexto: ['pwd=/home', 'ls=...'] | Levanta mysql con contraseña.
|
docker run -e MYSQL_ROOT_PASSWORD=secret -d mysql
|
Contexto: ['pwd=/opt', 'ls=...'] | Arranca postgres en el puerto 5432.
|
docker run -p 5432:5432 -d postgres
|
Contexto: ['pwd=/home', 'ls=...'] | Pausa el contenedor.
|
docker pause contenedor
|
Contexto: ['pwd=/home', 'ls=...'] | Reanuda el contenedor.
|
docker unpause contenedor
|
Contexto: ['pwd=/home', 'ls=...'] | Pon en marcha 'jenkins'.
|
docker start jenkins
|
Contexto: ['pwd=/home', 'ls=...'] | Apaga 'grafana'.
|
docker stop grafana
|
Contexto: ['pwd=/home', 'ls=...'] | Lanza un alpine.
|
docker run -it alpine sh
|
Contexto: ['pwd=/home', 'ls=...'] | Corre un contenedor con nombre 'prueba'.
|
docker run --name prueba -d nginx
|
Contexto: ['pwd=/home', 'ls=...'] | Inicia todo lo que esté parado.
|
echo 'Debes especificar el contenedor'
|
Contexto: ['pwd=/home', 'ls=...'] | Reinicia 'frontend'.
|
docker restart frontend
|
Contexto: ['pwd=/home', 'ls=...'] | Stop a 'backend'.
|
docker stop backend
|
Contexto: ['pwd=/home', 'ls=...'] | Start a 'redis'.
|
docker start redis
|
Contexto: ['pwd=/home/app', 'ls=Dockerfile'] | Construye la imagen.
|
docker build -t mi-imagen .
|
Contexto: ['pwd=/opt', 'ls=Dockerfile'] | Crea la imagen con tag 'v1'.
|
docker build -t app:v1 .
|
Contexto: ['pwd=/tmp', 'ls=Dockerfile'] | Haz el build de esto.
|
docker build .
|
Contexto: ['pwd=/home', 'ls=...'] | Bájate la imagen de node.
|
docker pull node
|
Contexto: ['pwd=/var', 'ls=...'] | Descarga mongo:latest.
|
docker pull mongo:latest
|
Contexto: ['pwd=/home', 'ls=...'] | Traete la imagen de alpine.
|
docker pull alpine
|
Contexto: ['pwd=/home', 'ls=...'] | Lista las imágenes.
|
docker images
|
Contexto: ['pwd=/opt', 'ls=...'] | ¿Qué imágenes tengo?
|
docker images
|
Contexto: ['pwd=/home', 'ls=...'] | Muestrame las imágenes descargadas.
|
docker images
|
Contexto: ['pwd=/home', 'ls=...'] | Borra la imagen de ubuntu.
|
docker rmi ubuntu
|
Contexto: ['pwd=/tmp', 'ls=...'] | Elimina la imagen antigua.
|
docker rmi image_id
|
Contexto: ['pwd=/var', 'ls=...'] | Quita la imagen de python.
|
docker rmi python
|
Contexto: ['pwd=/home/project', 'ls=Dockerfile'] | Buildear imagen 'test'.
|
docker build -t test .
|
Contexto: ['pwd=/home', 'ls=...'] | Obtener imagen de mariadb.
|
docker pull mariadb
|
Contexto: ['pwd=/home', 'ls=...'] | Ver imágenes locales.
|
docker images
|
Contexto: ['pwd=/home', 'ls=...'] | Eliminar imagen 'unused'.
|
docker rmi unused
|
Contexto: ['pwd=/home', 'ls=...'] | Bajar debian.
|
docker pull debian
|
Contexto: ['pwd=/home/dev', 'ls=Dockerfile'] | Genera la imagen docker.
|
docker build .
|
Contexto: ['pwd=/home', 'ls=...'] | Descargar redis.
|
docker pull redis
|
Contexto: ['pwd=/home', 'ls=...'] | Mostrar fotos de docker.
|
docker images
|
Contexto: ['pwd=/home', 'ls=...'] | Borrar imagen forzando.
|
docker rmi -f image_id
|
Contexto: ['pwd=/home', 'ls=...'] | Pull a nginx.
|
docker pull nginx
|
Contexto: ['pwd=/home', 'ls=...'] | Listar images.
|
docker images
|
Contexto: ['pwd=/home', 'ls=Dockerfile'] | Build sin caché.
|
docker build --no-cache .
|
Contexto: ['pwd=/home', 'ls=...'] | Limpia imágenes colgantes (dangling).
|
docker image prune
|
Contexto: ['pwd=/home', 'ls=...'] | Entra en el contenedor 'web'.
|
docker exec -it web bash
|
Contexto: ['pwd=/home', 'ls=...'] | Abre una shell en 'db'.
|
docker exec -it db sh
|
Contexto: ['pwd=/home', 'ls=...'] | Ejecuta 'ls' dentro de 'app'.
|
docker exec app ls
|
Contexto: ['pwd=/home', 'ls=...'] | Corre un comando dentro del container.
|
docker exec -it container_id /bin/bash
|
Contexto: ['pwd=/home', 'ls=...'] | Borra el contenedor 'test'.
|
docker rm test
|
Contexto: ['pwd=/home', 'ls=...'] | Elimina el container parado.
|
docker rm container_id
|
Contexto: ['pwd=/home', 'ls=...'] | Fuerza el borrado de 'app'.
|
docker rm -f app
|
Contexto: ['pwd=/home', 'ls=...'] | Limpia contenedores parados.
|
docker container prune
|
Contexto: ['pwd=/home', 'ls=...'] | Purga todo lo no usado.
|
docker system prune
|
Contexto: ['pwd=/home', 'ls=...'] | Borra todo (volúmenes incluidos).
|
docker system prune -a --volumes
|
Contexto: ['pwd=/home', 'ls=...'] | Elimina todos los contenedores.
|
docker rm $(docker ps -aq)
|
Contexto: ['pwd=/home', 'ls=...'] | Borra todas las imágenes.
|
docker rmi $(docker images -q)
|
Contexto: ['pwd=/home', 'ls=...'] | Limpia volúmenes huérfanos.
|
docker volume prune
|
Contexto: ['pwd=/home', 'ls=...'] | Quita la red no usada.
|
docker network prune
|
Contexto: ['pwd=/home', 'ls=...'] | Ejecuta pg_dump en postgres.
|
docker exec postgres pg_dump dbname > dump.sql
|
Contexto: ['pwd=/home', 'ls=...'] | Accede a la consola de redis.
|
docker exec -it redis redis-cli
|
Contexto: ['pwd=/home', 'ls=...'] | Borra el container 'viego'.
|
docker rm viego
|
Contexto: ['pwd=/home', 'ls=...'] | Limpieza general de docker.
|
docker system prune
|
Contexto: ['pwd=/home', 'ls=...'] | Eliminar container forzado.
|
docker rm -f container_name
|
Contexto: ['pwd=/home', 'ls=...'] | Entrar al shell.
|
docker exec -it container_id sh
|
Contexto: ['pwd=/home', 'ls=...'] | Ejecutar comando en background.
|
docker exec -d container_id touch /tmp/exec_works
|
Contexto: ['pwd=/home', 'ls=...'] | Quitar contenedores muertos.
|
docker container prune
|
Contexto: ['pwd=/home', 'ls=...'] | Borrar imágenes dangling.
|
docker image prune
|
Contexto: ['pwd=/home', 'ls=...'] | Limpiar cache de build.
|
docker builder prune
|
Contexto: ['pwd=/home', 'ls=...'] | Entra como root.
|
docker exec -u 0 -it container bash
|
Contexto: ['pwd=/home', 'ls=...'] | Lista las redes.
|
docker network ls
|
Contexto: ['pwd=/home', 'ls=...'] | Crea una red llamada 'mi-red'.
|
docker network create mi-red
|
Contexto: ['pwd=/home', 'ls=...'] | Borra la red 'test'.
|
docker network rm test
|
Contexto: ['pwd=/home', 'ls=...'] | Conecta el contenedor a la red.
|
docker network connect mi-red contenedor
|
Contexto: ['pwd=/home', 'ls=...'] | Desconecta de la red.
|
docker network disconnect mi-red contenedor
|
Contexto: ['pwd=/home', 'ls=...'] | Inspecta la red.
|
docker network inspect mi-red
|
Contexto: ['pwd=/home', 'ls=...'] | Lista los volúmenes.
|
docker volume ls
|
Contexto: ['pwd=/home', 'ls=...'] | Crea un volumen 'datos'.
|
docker volume create datos
|
Contexto: ['pwd=/home', 'ls=...'] | Borra el volumen 'basura'.
|
docker volume rm basura
|
Contexto: ['pwd=/home', 'ls=...'] | Inspecta el volumen.
|
docker volume inspect datos
|
Contexto: ['pwd=/home', 'ls=...'] | Ver drivers de red.
|
docker info
|
Contexto: ['pwd=/home', 'ls=...'] | Crear red tipo bridge.
|
docker network create --driver bridge mi-bridge
|
Contexto: ['pwd=/home', 'ls=...'] | Eliminar volumen no usado.
|
docker volume prune
|
Contexto: ['pwd=/home', 'ls=...'] | Ver redes docker.
|
docker network ls
|
Contexto: ['pwd=/home', 'ls=...'] | Ver volúmenes persistentes.
|
docker volume ls
|
Contexto: ['pwd=/home', 'ls=...'] | Borrar todas las redes.
|
docker network prune
|
Contexto: ['pwd=/home', 'ls=...'] | Crear volumen data_db.
|
docker volume create data_db
|
Contexto: ['pwd=/home', 'ls=...'] | Quitar volumen.
|
docker volume rm volume_name
|
Contexto: ['pwd=/home', 'ls=...'] | ¿Qué redes hay?
|
docker network ls
|
Contexto: ['pwd=/home', 'ls=...'] | Detalles de la red 'host'.
|
docker network inspect host
|
Contexto: ['pwd=/home', 'ls=...'] | Run con volumen montado.
|
docker run -v datos:/data nginx
|
Contexto: ['pwd=/home', 'ls=...'] | Run en la red 'app-net'.
|
docker run --network app-net nginx
|
Contexto: ['pwd=/home', 'ls=...'] | Borrar red específica.
|
docker network rm network_id
|
Contexto: ['pwd=/home', 'ls=...'] | Crear volumen con nombre.
|
docker volume create my-vol
|
Contexto: ['pwd=/home', 'ls=...'] | Ver dónde está montado el volumen.
|
docker volume inspect --format '{{ .Mountpoint }}' my-vol
|