diff --git a/content/08_dockerfiles.md b/content/08_dockerfiles.md index 3389bd3fa023eae6e4d9a70d3c738d77857b7f5e..6b54229b3e3e4b4cd68fab002b60d39d26737e43 100644 --- a/content/08_dockerfiles.md +++ b/content/08_dockerfiles.md @@ -119,3 +119,20 @@ Par conséquent, lorsque le `Dockerfile` a exécuté la commande `COPY` en étan copiés dans le nouveau répertoire ont été spécifié en tant que `root`. > Once again, not sure.. + +### Inspectez l'historique (non-tronquée) de l'image et décrivez chacune des ses couches + +```bash +docker history dockerfiles_ex01:1.0 --no-trunc +``` + +```bash +IMAGE CREATED CREATED BY SIZE +sha256:969768d594b45fd014a90986623fa0ac9ede6ee8d26f0e4dd9532f93f9c63c2b 50 minutes ago CMD ["ls" "-al" "/dir_tar" "/dir_add"] 0B +<missing> 50 minutes ago COPY file0* /dir_add/ # buildkit 16.8kB +<missing> 50 minutes ago RUN /bin/sh -c mkdir /dir_add # buildkit 0B +<missing> 50 minutes ago ADD files.tar.gz /dir_tar # buildkit 92kB +<missing> 50 minutes ago LABEL maintainer=Yoda 0B +<missing> 9 days ago /bin/sh -c #(nop) CMD ["/bin/sh"] 0B +<missing> 9 days ago /bin/sh -c #(nop) ADD file:e3abcdba177145039cfef1ad882f9f81a612a24c9f044b19f713b95454d2e3f6 in / 7.79MB +```