Docker : fail to build - 'Could not resolve proxy'

richard-blondel 31/07/2025
RÉSOLU
richard-blondel
Auteur Actif
Avatar de richard-blondel
richard-blondel
Auteur Actif

yo j'ai mon build docker qui crash sur le apt-get update car il arrive pas à joindre le proxy de ma boîte, alors que mon host y arrive très bien

31/07/2025 à 01:07

2 commentaires

launay-anouk
Membre Actif
Avatar de launay-anouk
launay-anouk
Membre Actif

le build docker n'hérite pas forcément des vars d'env du shell. faut passer le proxy via --build-arg

docker build --build-arg http_proxy=http://proxy:8080 .
Modifié le 23/05/2026 à 16:20
richard-blondel
Auteur Actif
Avatar de richard-blondel
richard-blondel
Auteur Actif

c'était bien les build-args. ça roule mtn. merci

01/08/2025 à 21:05

Laisser une réponse

Vous devez être connecté pour poster un message !

Rejoindre la communauté

Recevoir les derniers articles gratuitement en créant un compte !

S'inscrire
An Error Occurred: Internal Server Error

Oops! An Error Occurred

The server returned a "500 Internal Server Error".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.