LoginSignup
3
1

More than 5 years have passed since last update.

Docker for Windows で、docker-compose build 時に 'deb.debian.org' の名前解決に失敗する

Posted at

環境

  • docker for windows (Version 18.06.1-ce-win73)
  • Windows 10 Pro (Version 1803)

事象

  • docker-compose build をした際に、以下のようなエラーがでて先へ進めなくなった
  Temporary failure resolving 'deb.debian.org'
  • Dockerfile は以下のような感じ
FROM php:7.2-apache

RUN apt-get update\
    && apt-get install -y --no-install-recommends git\
    && apt-get install -y --no-install-recommends openssh-client\
    && apt-get install -y --no-install-recommends zip\
    && apt-get install -y --no-install-recommends sudo\
    && apt-get install -y --no-install-recommends supervisor\
    && apt-get install -y --no-install-recommends wget\
    && apt-get install -y --no-install-recommends vim\
    && apt-get upgrade -y\
    && apt-get clean -y

対応

  • Docker のDNS設定を固定にする 2018-09-04_20h12_21.png
3
1
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
3
1