LoginSignup
0
0

More than 5 years have passed since last update.

Dockerfile の RUN gem install で Gem::RemoteFetcher::UnknownHostError に遭遇する事がある件

Posted at

use DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
https://meta.discourse.org/t/getting-unknownhosterror-from-gem-remotefetcher-on-new-install/43464/4

上記を参考に、Docker for Mac の設定を以下の様にして様子見中。

スクリーンショット 2017-04-21 18.22.09.png

以下の Dockerfile を作り、

Dockerfile
FROM ruby:2.4.1-alpine

RUN gem install rubygems-update --no-document

以下の繰り返し実行で Gem::RemoteFetcher::UnknownHostError に遭遇せず。

$ for i in $(seq 1 10)
do
  docker image build --no-cache -t test docker/
  sleep 1
done
0
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
0
0