User Tools

Site Tools


apuntes:docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
apuntes:docker [2017/09/20 11:52] Santiago Faciapuntes:docker [2019/01/04 13:02] – external edit 127.0.0.1
Line 59: Line 59:
 COPY src /var/www/html COPY src /var/www/html
 </file> </file>
 +
 +De esta forma tendremos una carpeta cuyo contenido será el fichero ''Dockerfile'' que acabamos de crear y la carpeta ''src'' con el sitio web que queremos probar
 +
 +<code bash>
 +santi@zenbook:$ ls
 +Dockerfile src
 +</code>
  
 A continuación, ya podemos crear la imagen, ejecutando el siguiente comando, donde aprovechamos para etiquetarla como ''miapache-php'': A continuación, ya podemos crear la imagen, ejecutando el siguiente comando, donde aprovechamos para etiquetarla como ''miapache-php'':
Line 80: Line 87:
 cddaac5f61ab: Pull complete  cddaac5f61ab: Pull complete 
 1d7adb8f245d: Pull complete  1d7adb8f245d: Pull complete 
-Digest: sha256:917ceda30c70ebb682536a1f091f25a8364d61c72c332396e8331feef389128a+Digest: sha256:917ceda30c70ebb682536a1f091f25a8364d61c72c3323. . .
 Status: Downloaded newer image for php:7.0-apache Status: Downloaded newer image for php:7.0-apache
  ---> b123b973e3e8  ---> b123b973e3e8
apuntes/docker.txt · Last modified: 2023/04/14 11:06 by Santiago Faci