小编Ove*_*own的帖子

无法从 Dockerfile 中克隆公共存储库

我的 Dockerfile 中有以下行:

RUN git clone https://github.com/assafg/youtube-remote.git ./youtube-remote
Run Code Online (Sandbox Code Playgroud)

执行 sudo docker build -t 'yremote' 时。我收到以下错误:

克隆到“./youtube-remote”...致命:无法访问“ https://github.com/assafg/youtube-remote.git/ ”:无法解析主机:github.com 命令“/bin/” sh -c git clone https://github.com/assafg/youtube-remote.git ./youtube-remote' 返回非零代码:128

从命令行运行 clone 命令工作正常。

github docker

6
推荐指数
1
解决办法
8607
查看次数

标签 统计

docker ×1

github ×1