- Introducción a la tecnología de contenedores
- Creación de servicios en contenedores
- Gestión de contenedores
- Gestión de imágenes de contenedores
- Creación de imágenes de contenedor personalizadas
- Kubernetes
- Implementación de aplicaciones en contenedores con OpenShift
- Revisión completa
Accelerate how you build, share and run modern applications
- Docker for Windows release notes
- What is a Container?
- Docker overview
- Docker reference
- Get Started with Docker
- Play with
docker run -i -t ubuntu /bin/bash - Try to install something, and rerun the container
- Learn about what happened.
- Now with some volume and port:
- PowerShell
docker run --rm -p 80:80 -v ${pwd}:/usr/share/nginx/html/ nginx - Bash
docker run --rm -p 80:80 -v $(pwd):/usr/share/nginx/html/ nginx
- PowerShell
- Remove all containers:
docker rm $(docker ps -aq) - Manage images:
docker image - Run containers:
docker run - Pull images:
docker pull
- FROM
- RUN
- WORKDIR
- COPY
- EXPOSE
- CMD
- ENV
- VOLUME
move to demo ./move/to.sh dockerfile
- Build
docker build --rm -t docker-app . - Run
docker run --rm -p 80:80 --name my-app docker-app - Entry into the container
docker exec -it my-app /bin/bash - Run with volume (for developers):
- PowerShell
docker run --rm -p 80:80 -v ${pwd}:/usr/share/nginx/html/ --name my-app docker-app - Bash
docker run --rm -p 80:80 -v $(pwd):/usr/share/nginx/html/ --name my-app docker-app
- PowerShell
Dockerize front npm App: move to practice ./move/to.sh dockerize
- Install dependencies
npm install - Build app
npm run build - Public files
dist/docker-app - Run app
npm start - Run app all interfaces
npm start -- --host 0.0.0.0
Solution: ./move/to.sh dockerize-solution
- Try to translate the Dockerfile in a docker-compose.yml
Solution: ./move/to.sh compose-solution
Move to ./move/to.sh Kubernetes