Docker 构建 rocker/r-ver:3.4.4 失败

Docker build rocker/r-ver:3.4.4 fail

我一直在努力构建

FROM rocker/r-ver:3.4.4
MAINTAINER Dennis Leão
RUN apt-get -y update && \
 apt-get install -y build-essential curl openssl 

但我收到以下错误

Err:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease
  Could not connect to security-cdn.debian.org:80 (151.101.252.204). - connect (111: Connection refused)
Err:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
  Could not connect to cdn-fastly.deb.debian.org:80 (151.101.252.204). - connect (111: Connection refused)
Err:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
  Unable to connect to cdn-fastly.deb.debian.org:http:
Reading package lists...
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease  Could not connect to cdn-fastly.deb.debian.org:80 (151.101.252.204). - connect (111: Connection refused)
W: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease  Could not connect to security-cdn.debian.org:80 (151.101.252.204). - connect (111: Connection refused)
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease  Unable to connect to cdn-fastly.deb.debian.org:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package build-essential
E: Unable to locate package curl

我正在使用 Macos Mojave,但我能够在 ubuntu 16 上构建。我能做什么?

嗯,最后是 DNS 问题,更改我 Mac 的 DNS 解决了那个问题。