Escriu per cercar…

Imatge

S'ensenya a
Desplegament d’aplicacions webServidors web en contenidorsDAWDAW-BIOSeguretat i alta disponibilitatContenidorsASIX

Imatges

Amb l’ordre docker images podem veure totes les imatges que s’han descarregat i que estan en la cache de la màquina virtual:

shell
docker images
REPOSITORY                   TAG       IMAGE ID       CREATED         SIZE
sail-8.3/app                 latest    be7554cb158e   4 days ago      1.66GB
redis                        alpine    eac30ee4acc6   5 days ago      46.1MB
...

Pots verificar que no tinc cap imatge alpine:3.1:

shell
docker images alpine:3.1
REPOSITORY   TAG       IMAGE ID       CREATED       SIZE

Per executar un contenidor s’ha de descarregar la imatge corresponent:

shell
docker run --name alpine alpine:3.1 echo "Hello!"
Unable to find image 'alpine:3.1' locally
3.1: Pulling from library/alpine
0f253aa151d7: Pull complete 
Digest: sha256:4dfc68bc95af5c1beb5e307133ce91546874dcd0d880736b25ddbe6f483c65b4
Status: Downloaded newer image for alpine:3.1
Hello!

La imatge queda guardada en la màquina virtual:

shell
docker images alpine:3.1
REPOSITORY   TAG       IMAGE ID       CREATED       SIZE
alpine       3.1       a1038a41fe2b   5 years ago   5.05MB

Estàs llegint una vista prèvia.

Inicia sessió amb Google per llegir la pàgina completa.

Inicia sessió amb Google

Amb qualsevol compte de Google. Només et demanarem que acceptis les condicions del servei.