我的 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 命令工作正常。