Debian 10 で OMV 5 を実行しているサーバーの Docker コンテナでこの問題が発生しました。
Temporary failure resolving
この設定について。私は最近、2台のx86サーバーと1台のARMサーバーにOMV 5をインストールしました。問題はサーバーの1つでのみ発生します。ホストOS内ではDNSが正常に動作しているようで、パッケージをインストールしてアップグレードできますが、Dockerコンテナ内ではまったく機能しません。いくつかのガイドに従っていますが、これまで何も役に立ちませんでした。また、イメージを復元し、Dockerを何度も再インストールしました。さらに、サーバーには、一部のディスク固有の構成のみが変更された同じオペレーティングシステムイメージがあります。私はこのガイドを試しましたhttps://development.robinwinslow.uk/2016/06/23/fix-docker-networking-dns/このhttps://www.dedoimedo.com/computers/docker-container-no-network.html すべてのサーバーで、私はこれを取得します
root@mars:~# docker run busybox nslookup google.com
Server: 192.168.1.1
Address: 192.168.1.1:53
Non-authoritative answer:
Name: google.com
Address: 172.217.20.174
*** Can't find google.com: No answer
両方のサーバー(armとx86)で実行されます。
root@venus:~# docker run -t -i ubuntu /bin/bash
root@9e4dce3d6ad9:/# apt update
Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [107 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [8273 B]
Get:6 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [60.9 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [4673 B]
Get:9 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:10 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [31.6 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [4673 B]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [104 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [2903 B]
Fetched 13.6 MB in 10s (1389 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root@9e4dce3d6ad9:/#
しかし、3日(x86)に私はこれを得ます。
root@mars:~# docker run -t -i ubuntu /bin/bash
root@173885bb1bfa:/# apt update
Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
私のルータはOpenWrt 19.07を実行しており、再起動してdhcpリースも削除しました。インストール後にネットワークを自動的に設定できない問題を修正しました。また、XとVNCを含むコンテナを見つけ始めました。 DNSはブラウザではうまく機能しますが、適切な場合は機能しません。
また、ヘネットトンネルプロキシを使用してipv6を取得します。
ベストアンサー1
問題は、dockerとportainerのインストール時にデフォルトでゲートウェイIPを受信するOMVのバグの種類に関連しています。 portainerなしでDockerリポジトリを再作成することで問題を解決しました。