1. Mito
2. Contexte
Création d'un dockerfile
(base) lcc@lcc negix$ ll
total 8
drwxr-xr-x 3 lcc staff 96 4 8 08:47 ./
drwxr-xr-x 4 lcc staff 128 4 8 08:45 ../
-rw-r--r-- 1 lcc staff 144 4 8 08:47 myweb
(base) lcc@lcc negix$ pwd
/Users/lcc/soft/docker/negix
(base) lcc@lcc negix$
Mais l'erreur de temps de construction
(base) lcc@lcc negix$ docker build -tf myweb
unable to prepare context: context must be a directory: /Users/lcc/soft/docker/negix/myweb
(base) lcc@lcc negix$ docker build -tf /Users/lcc/soft/docker/negix/myweb
unable to prepare context: context must be a directory: /Users/lcc/soft/docker/negix/myweb
Plus tard trouvé mauvais chemin, aucun chemin de contexte
(base) lcc@lcc negix$ docker build -t myweb:v1 -f /Users/lcc/soft/docker/negix/myweb .
Sending build context to Docker daemon 2.048kB
Step 1/3 : FROM nginx
---> ed21b7a8aee9
Step 2/3 : RUN apt-get update && apt-get install -y curl
---> Running in 964133b17989
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://security.debian.org/debian-security buster/updates/main amd64 Packages [187 kB]
C'est tout.