【发布时间】:2020-08-17 09:56:08
【问题描述】:
我有一个 Rails 应用程序,我想使用 Docker 在 Ubuntu 服务器上部署它。我已经设置了应用程序的 Dockerfile,现在我想查看其容器中的 nginx conf。
我运行以下命令以交互模式启动 nginx 容器:
docker run -i -t nginx:latest /bin/bash
现在我正在尝试安装 nano 编辑器,以便使用以下命令查看 nginx 配置 (nginx.conf) 的配置:
apt-get update
apt-get install nano
export TERM=xterm
但是,当我运行第一个命令 apt-get update 时,我收到以下错误:
Err:1 http://security.debian.org/debian-security buster/updates InRelease
Temporary failure resolving 'security.debian.org'
Err:2 http://deb.debian.org/debian buster InRelease
Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian buster-updates InRelease
Temporary failure resolving 'deb.debian.org'
Reading package lists... Done
W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease Temporary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
我检查得很好,它与网络连接无关。我需要一些帮助。谢谢。
【问题讨论】:
标签: docker ubuntu nginx debian