首页 > 解决方案 > 如何使用 Docker 从 Github 运行这个特定的程序?

问题描述

我正在做一个需要我重新创建论文结果的项目。作者使用的代码以及如何重新创建结果的说明在这里: https ://github.com/ElementAI/N-BEATS/tree/04f56c4ca4c144071b94089f7195b1dd606072b0#datasets

作者建议使用我以前从未使用过的Docker 。

这是我尝试过的总结:

我下载了 Docker 和 Python,并在命令提示符下运行了以下命令(根据 redditor 的建议):

git clone https://github.com/ElementAI/N-BEATS.git

cd N-BEATS

docker build .

运行后docker build .我收到以下错误:


[2/9] RUN apt-get update -y --fix-missing && apt-get install -y --no-install-recommends software-properties-common wget curl unrar unzip libnvinfer6=6.0.1-1+cuda10.2 libnvinfer-dev=6.0.1-1+cuda10.2 libnvinfer-plugin6=6.0.1-1+cuda10.2 git && apt-get clean -y: 5 1.325 Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] 5 1.334 Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB] 5 1.351 Ign:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease 5 1.424 Ign:4 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 InRelease 5 1.440 Get:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 Release [697 B] 5 1.458 Get:6 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 Release [564 B] 5 1.473 Get:7 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 Release.gpg [836 B] 5 1.497 Get:8 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 Release.gpg [833 B] 5 1.691 Ign:9 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 Packages 5 1.705 Get:9 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 Packages [334 kB] 5 1.791 Get:10 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 Packages [49.5 kB] 5 1.843 Get:11 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] 5 2.019 Get:12 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] 5 2.197 Get:13 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB] 5 2.210 Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB] 5 3.957 Get:15 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB] 5 4.195 Get:16 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB] 5 20.05 Reading package lists... 5 20.69 E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 12h 5min 13s). Updates for this repository will not be applied. 5 20.69 E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 12h 5min 52s). Updates for this repository will not be applied. 5 20.69 E: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease is not valid yet (invalid for another 12h 6min 37s). Updates for this repository will not be applied.

failed to solve with frontend dockerfile.v0: failed to build LLB: executor failed running [/bin/sh -c apt-get update -y --fix-missing && apt-get install -y --no-install-recommends software-properties-common wget curl unrar unzip libnvinfer6=6.0.1-1+cuda10.2 libnvinfer-dev=6.0.1-1+cuda10.2 libnvinfer-plugin6=6.0.1-1+cuda10.2 git && apt-get clean -y]: runc did not terminate sucessfully

我的操作系统: Windows 10 家庭版

Reddit 的一些人试图帮助我解决这个问题,但我认为问题在于他们没有遵循作者在自述文件中的说明。

标签: pythongitdockergithubpytorch

解决方案


推荐阅读