Taller Docker - 0x06 - #DomingoNegro #HatThieves https://www.hatthieves.es/category/domingos-negros/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
747 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. # Parte 0: Empezando con docker
  2. ## Instalar docker en debian
  3. ### Instalar dependencias
  4. ```
  5. apt-get install \
  6. apt-transport-https \
  7. ca-certificates \
  8. curl \
  9. gnupg-agent \
  10. software-properties-common
  11. ```
  12. ### Añadir clave repositorio
  13. ```
  14. curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
  15. ```
  16. ### Añadir repositorio
  17. ```
  18. add-apt-repository \
  19. "deb [arch=amd64] https://download.docker.com/linux/debian \
  20. $(lsb_release -cs) \
  21. stable"
  22. ```
  23. ### Instalar docker
  24. ```
  25. apt-get update && apt-get install docker-ce docker-ce-cli containerd.io
  26. ```
  27. ## Arrancar nuestro primer contenedor
  28. ```
  29. docker run -ti --rm --name prueba debian:buster-slim /bin/bash
  30. ```
  31. ![flujo-docker](../images/flujo-docker.png)