OpenClassrooms-Student-Center / ghost-cms

Ce repo est utilisé dans l'activité du cours Optimisez vos déploiements en créant des conteneurs avec Docker
MIT License
17 stars 127 forks source link

Problème lors du build #4

Open echelon75 opened 1 year ago

echelon75 commented 1 year ago

Bonjour,

Lorsque je lance la commande : C:\Users\varic\Documents\docker\ghost-cms-master\ghost-cms-master>docker build -t ocr-docker-build . [+] Building 4.5s (7/10) => [internal] load .dockerignore 0.1s => => transferring context: 57B 0.0s => [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 329B 0.0s => [internal] load metadata for docker.io/library/debian:9 1.6s => [auth] library/debian:pull token for registry-1.docker.io 0.0s => CACHED [1/5] FROM docker.io/library/debian:9@sha256:c5c5200ff1e9c73ffbf1 0.0s => [internal] load build context 0.8s => => transferring context: 10.00MB 0.7s => ERROR [2/5] RUN apt-get update -yq && apt-get install curl gnupg -yq 2.7s

[2/5] RUN apt-get update -yq && apt-get install curl gnupg -yq && curl -sL https://deb.nodesource.com/setup_10.x | bash && apt-get install nodejs -yq && apt-get clean -y:

0 0.805 Ign:1 http://security.debian.org/debian-security stretch/updates InRelease

0 0.835 Ign:2 http://deb.debian.org/debian stretch InRelease

0 0.857 Ign:3 http://security.debian.org/debian-security stretch/updates Release

0 0.894 Ign:4 http://deb.debian.org/debian stretch-updates InRelease

0 0.919 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages

0 0.939 Ign:6 http://deb.debian.org/debian stretch Release

0 0.971 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages

0 1.006 Ign:8 http://deb.debian.org/debian stretch-updates Release

0 1.028 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages

0 1.056 Ign:9 http://deb.debian.org/debian stretch/main all Packages

0 1.090 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages

0 1.106 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages

0 1.148 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages

0 1.148 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages

0 1.220 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages

0 1.232 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages

0 1.262 Ign:9 http://deb.debian.org/debian stretch/main all Packages

0 1.278 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages

0 1.311 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages

0 1.332 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages

0 1.377 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages

0 1.403 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages

0 1.432 Ign:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages

0 1.439 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages

0 1.483 Ign:9 http://deb.debian.org/debian stretch/main all Packages

0 1.483 Ign:5 http://security.debian.org/debian-security stretch/updates/main all Packages

0 1.529 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages

0 1.537 Err:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages

0 1.537 404 Not Found [IP: 151.101.2.132 80]

0 1.571 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages

0 1.634 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages

0 1.718 Ign:9 http://deb.debian.org/debian stretch/main all Packages

0 1.770 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages

0 1.823 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages

0 1.988 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages

0 2.032 Ign:9 http://deb.debian.org/debian stretch/main all Packages

0 2.074 Ign:10 http://deb.debian.org/debian stretch/main amd64 Packages

0 2.130 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages

0 2.200 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages

0 2.245 Ign:9 http://deb.debian.org/debian stretch/main all Packages

0 2.298 Err:10 http://deb.debian.org/debian stretch/main amd64 Packages

0 2.298 404 Not Found [IP: 199.232.170.132 80]

0 2.385 Err:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages

0 2.385 404 Not Found [IP: 199.232.170.132 80]

0 2.435 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages

0 2.440 Reading package lists...

0 2.450 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.

0 2.450 W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.

0 2.450 W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.

0 2.450 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.2.132 80]

0 2.450 E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages 404 Not Found [IP: 199.232.170.132 80]

0 2.450 E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages 404 Not Found [IP: 199.232.170.132 80]

0 2.450 E: Some index files failed to download. They have been ignored, or old ones used instead.


Dockerfile:3

2 | 3 | >>> RUN apt-get update -yq \ 4 | >>> && apt-get install curl gnupg -yq \ 5 | >>> && curl -sL https://deb.nodesource.com/setup_10.x | bash \ 6 | >>> && apt-get install nodejs -yq \ 7 | >>> && apt-get clean -y 8 |

ERROR: failed to solve: process "/bin/sh -c apt-get update -yq && apt-get install curl gnupg -yq && curl -sL https://deb.nodesource.com/setup_10.x | bash && apt-get install nodejs -yq && apt-get clean -y" did not complete successfully: exit code: 100

Cela est il normal ?

Merci

Richard

Ayweth20 commented 11 months ago

Bonjour @echelon75 , Cette erreur est due à la version de Debian. Modifiez votre Dockerfile avec FROM debian:10 et l'erreur disparaitra.