Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brian-emarquez/docker-course
π³ Docker is a complete container management platform. Throughout this course you will learn what Docker is, why to use it and you will be introduced to the management of these containers with practical examples that guide you through the world of managing applications with containers.
https://github.com/brian-emarquez/docker-course
docker docker-compose docker-container docker-image dockerfiles
Last synced: 2 months ago
JSON representation
π³ Docker is a complete container management platform. Throughout this course you will learn what Docker is, why to use it and you will be introduced to the management of these containers with practical examples that guide you through the world of managing applications with containers.
- Host: GitHub
- URL: https://github.com/brian-emarquez/docker-course
- Owner: brian-emarquez
- Created: 2020-05-13T23:40:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-29T17:47:16.000Z (9 months ago)
- Last Synced: 2024-04-29T19:00:28.976Z (9 months ago)
- Topics: docker, docker-compose, docker-container, docker-image, dockerfiles
- Language: JavaScript
- Homepage: https://github.com/BrianMarquez3
- Size: 23.1 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Learn Docker | Containers using Interactive Browser Based Scenarios
## Install
π¦ [Install Docker en Ubuntu](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04-es) Develop faster.
Run anywhere.
π¦ [Install Docker en Windows ](https://www.docker.com/products/docker-desktop) Accelerate how you build, share and run modern applications.
π¦ [Install Docker Compose en Ubuntu](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-20-04) Accelerate how you build, share and run modern applications.**Inicializar Docker Ubuntu**
```bash
service docker start
``````bash
service docker status
``````bash
service docker stop
```## Correcion del Error - Instalaccion
System has not been booted with systemd as init system (PID 1). Can't operate - [Systemctl](https://askubuntu.com/questions/1379425/system-has-not-been-booted-with-systemd-as-init-system-pid-1-cant-operate)
- Download the latest package:
https://docs.microsoft.com/en-us/windows/wsl/install-manual
If you're using an ARM64 machine, please download the ARM64 package instead. If you're not sure what kind of machine you have, open Command Prompt or PowerShell and enter: systeminfo | find "System Type". Caveat: On non-English Windows versions, you might have to modify the search text, for example, in German it would be systeminfo | find "Systemtyp".
**Fix: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?**
_Error al inicializar Docker Ubuntu_
```bash
sudo update-alternatives --config iptables
```Then re-start docker service
```bash
sudo service docker start
```And check docker status again with
```bash
sudo service docker status
```Documentation [Fix: Cannot connect to the Docker daemon](https://github.com/docker/for-linux/issues/1406)
## DockerHub
* Tutorial Docker
[Tutorial Docker ](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04-es) - CΓ³mo instalar y usar Docker en Ubuntu 20.04
## Images Docker
_DockerFiles_
- Creador de imagenes
_Descargar una imagen de postgre 9.6_
```
docker run postgres:9.6
```
## Comandos Comunes_Version de Docker_
```
docker --version
```
_Version de Docker compose_```
docker-compose --version
```_Permite correr un contenedor_
```
docker run
```_Permite descargar imagen y no correr_
```
docker pull
```_Permite ver la imagenes_
```
docker images | head
```_Suprimir el Sudo del principio_
```
sudo usermod -aG docker ${USER}
``````
su - ${USER}
```_Permite ver los contenedores corriendo_
```
docker ps
```_Permite ver los contenedores que corriendo hace un tiempo_
```
docker ps -a
```_Permite recuperar los datos de un contenedor_
```
docker start ContainerID
```_Ver los Logs_
```
docker log ContainerID
```_Eliminar Contenedor_
```
docker rmi Idcontainer
```_Ejecutar comando en un Docker en funcionamiento_
```
docker exec -it ContainerID sh
- ls
```_Detener contenedor_
```
docker stop ContainerID
```_Ejecutar en Backbround_
```
docker run -d nombre
```_Contruir Imagen_
```yaml
docker build -t devrrior/docker-django .
```_Correr Imagen_
```yaml
docker run -p 8000:8000 devrrior/docker-djando
```_Correr sin log_
```yaml
docker run -d -v /home/briandb/docker-django/:/app -p 8000:8000 devrrior/docker-django
```
[5704613836e41711efa45f5e875257c6bae734e68b18668f022040d3fd8133e7]_Correr con Log_
```yaml
docker logs --follow 5704613836e41711efa45f5e875257c6bae734e68b18668f022040d3fd8133e7
```_Entrar al contenedor_
```yaml
docker exec -it 5704613836e41711efa45f5e875257c6bae734e68b18668f022040d3fd8133e7 /bin/sh
```_Volumenes_
```yaml
docker run -v /home/briandb/docker-django/:/app -p 8000:8000 devrrior/docker-django
```
## Comandos en casos de proyectosdentro de la careta donde se tien un proyecto!
```
vim Dockerfile
```_Ejemplo_
```
FROM node:12.22.1-alpine3.11WORKDIR /app
COPY . .
RUN yarn install --productionCMD ["node", "/app/src/index.js"]
```## Docker Hub
_Ejemplo_
```
docker pull node
``````
docker pull alpine
```## Construccion del Contenedor
```
docker build -t getting-started
```## Ejecutar
```
docker run -dp 3000:3000 getting-started
```## Guardar un contenedor
```
sudo docker run -d -v /home/brian/Documents/Docker/etc/etc:/etc/todos -p 3000:3000 getting-started
```- Detener y volver a ejecutar, se guardaraon los cambios
- ir a [localhost:3000](http://localhost:3000)## Reconstruir Imagen Docker
```js
sudo docker run -d -v /home/brian/Documents/Docker/etc/etc:/etc/todos -p 3000:3000 getting-started
```## Spotify
π΅ Music [List on Spotify π€](https://open.spotify.com/playlist/1UMfu4axebdOMeM996K0xP?si=A-pW9orFSRegxZBWoMZp4w)
## Paypal Donation
π©Έ Hacer una donaciΓ³n [PAYPAL](https://www.paypal.com/donate?hosted_button_id=98U3T62494H9Y) π΅
---
A
B
C
E
F
G