Images

Listes des images

sudo docker images -a

REPOSITORY TAG IMAGE ID CREATED SIZE
alpine latest a187dde48cd2 10 days ago 5.6MB

Ajouter une image

sudo docker pull <IMAGE NAME>

Using default tag: latest
latest: Pulling from library/python
f15005b0235f: Pull complete
41ebfd3d2fd0: Pull complete
b998346ba308: Pull complete
f01ec562c947: Pull complete
2447a2c11907: Pull complete
fdd2d569da3e: Pull complete
ac3886b74a9f: Pull complete
3c783a9b35dd: Pull complete
ce16dda809f6: Pull complete
Digest: sha256:e02bda1a92a0dd360a976ec3ce6ebd76f6de18b57b885c0556d5af4035e1767d
Status: Downloaded newer image for python:latest
docker.io/library/python:latest

Supprimer une image

sudo docker image rm <IMAGE ID>

Untagged: python:latest
Untagged: [email protected]:e02bda1a92a0dd360a976ec3ce6ebd76f6de18b57b885c0556d5af4035e1767d
Deleted: sha256:d47898c6f4b05723ebddc99886483fad69488d1166a635f8f10449837267e55e
Deleted: sha256:4133405768f39ed3a84e83a30f89803739e89eebb2bf40b79d3fb99494c7d70f
Deleted: sha256:48fa63fa7ade6bc887c34c3cb7887af31a4ab5838f73d4957d5f0ad61b3f1a7c
Deleted: sha256:c9503494af3a82fc16b7519a7224959ea3ab046622fbac3d67933e2f02b37976
Deleted: sha256:1a7c29fae2e05f3e31d046480a3b625dd03e298037aacc3066c71435ef0a506b
Deleted: sha256:b6cf7f73f30516824caee764c9084be6bd57b56b8847caf92715f8ca52b95eeb
Deleted: sha256:271f4a1d79ed510de83e0a5c50df129ea6d19ff9c6c1774f22775605396d3c9c
Deleted: sha256:67075ef9c33e810eca54992cb0e89ecf66d4b8a3b243c997c1196925f3e74afc
Deleted: sha256:da8de0e4d99086ce422a7a80507b3298a026c322d2c21b4d9ab2388fbb4cf3c1
Deleted: sha256:24efcd549ab5e1786f787e7dc03590dcb222e7e95242524d97fedeb05393e891

Rechercher toutes les versions d'une image

sudo docker image ls <IMAGE NAME>

REPOSITORY TAG IMAGE ID CREATED SIZE
alpine latest a187dde48cd2 2 weeks ago 5.6MB
alpine 3.8 c8bccc0af957 2 months ago 4.41MB
alpine 3.9 82f67be598eb 2 months ago 5.53MB