Cloudera Quick Start Docker コンテナでホスト名を解決できません。

Cloudera Quick Start Docker コンテナでホスト名を解決できません。

〜によって
docker run --hostname=quickstart.cloudera --privileged=true -t -i -d --name quickstart0 -v /scratch/quickstart.cloudera/data:/data --publish-all=true -p 8888:8888 -p 7180:7180 cloudera/quickstart /usr/bin/docker-quickstart

問題なく8.8.8.8にpingを送信できますが:

[root@quickstart /]# ping www.google.com
ping: unknown host www.google.com

構成ファイルの解析

# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 75.75.75.75
nameserver 75.75.76.76
# Too many DNS servers configured, the following entries may be ignored.
search XXXXX.comcast.net
  • 8.8.8.8/8.8.4.4を交換してみましたが、成功しませんでした。
  • コンテナ外のpingは正常に動作します。
Client: Docker Engine - Community
 Version:           19.03.8
 API version:       1.39 (downgraded from 1.40)
 Go version:        go1.12.17
 Git commit:        afacb8b
 Built:             Wed Mar 11 01:27:04 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.1
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.6
  Git commit:       4c52b90
  Built:            Wed Jan  9 19:06:30 2019
  OS/Arch:          linux/amd64
  Experimental:     false

ベストアンサー1

~によるとこれ現在、以下以外にはエレガントなソリューションはありません。

sudo systemctl disable firewalld

おすすめ記事