lpaulpinto / Docker

Configuraciones Docker
0 stars 0 forks source link

Docker #1

Open lpaulpinto opened 5 years ago

lpaulpinto commented 5 years ago

https://www.digitalocean.com/community/tutorials/como-instalar-y-usar-docker-en-ubuntu-16-04-es

//Crear imagen nginx docker run --name ['El nombre de tu serv'] -P -d nginx Ejem: "docker run --name tiidnginx -P -d nginx" //Apuntando a un contenedor propio Ejem: "docker run --publish 8282:80 --name tiidnginxup -P -d lpaulpinto/tiidnginxup"

//Levantar nginx local con servidor docker docker run --name ['El nombre de tu serv'] -P -d -v ['Directorio Local']:['Directorio Docker Nxing'] nginx Ejem: "docker run --name tiidnginx -P -d -v /var/www/docker/tiidweb1:/usr/share/nginx/html nginx"

//Levantar nginx en puerto especifico Ejem: "docker run --publish 8181:80 --name tiidnginx -P -d -v /var/www/docker/tiidweb1:/usr/share/nginx/html nginx"

//Listar contenedores docker ps docker ps -a

//Parar contenedor docker stop [container-id]

//Eliminar contenedores docker rm [container-id]

//Eliminar imagenes docker rmi [imagen-id]

//Listar puerto ss -lntu netstat -ntpl

//Iniciar imagen docker docker run -it ubuntu

lpaulpinto commented 5 years ago

Videos:

https://www.youtube.com/watch?v=sGKSfFlKuEI https://www.youtube.com/watch?v=yQ_3huavJi8

lpaulpinto commented 5 years ago

https://docs.docker.com/engine/reference/commandline/exec/