1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Dockerでproxy配下時にbuildを通すためのbuildコマンドによる対応方法

Posted at

はじめに

docker-composeの対応方法については逆にご教示頂きたいです(´°̥̥̥̥̥̥̥̥ω°̥̥̥̥̥̥̥̥`)

対象

・環境的に、インターネットに出るにはproxyが必要な状況でDocker使いたい方
・状況を前提に、FROM centos:latest とかでOSイメージ取得からコケる方

結論

--build-arg を使う

サンプル

docker build -t <なんか適当なタグ> --build-arg http_proxy=proxyのURL --build-arg https_proxy=proxyのURL

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?