【发布时间】:2017-05-06 20:20:56
【问题描述】:
尝试运行 docker 命令:
nvidia-docker run -d -p 8888:8888 -e PASSWORD="123abcChangeThis" theano_secure start-notebook.sh
# Then open your browser at http://HOST:8888
取自https://github.com/nouiz/Theano-Docker
返回错误:
Error: image library/theano_secure:latest not found
似乎 theano_secure 图像当前不可用?
搜索 theano_secure :
$ nvidia-docker search theano_secure:latest
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
这个命令的返回是空的,所以图像不可用? 如果是这样,是否有来自 nvidia 的替代 Theano docker 图像?
更新:
从源代码构建:
docker build -t theano_secure -f Dockerfile.0.8.X.jupyter.cuda.secure .
返回:
Err http://developer.download.nvidia.com Release.gpg
Unable to connect to developer.download.nvidia.com:http: [IP: 184.24.98.231 80]
和:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease
手动检查网址:http://developer.download.nvidia.com 和 http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease 均不可用。我应该使用替代 docker 文件构建吗?
更新 2:
我认为发生此错误是因为http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease 不存在。但是http://archive.ubuntu.com/ubuntu/dists/trusty/Release 确实存在。
可以修改 docker 以使用 http://archive.ubuntu.com/ubuntu/dists/trusty/Release 而不是 http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease 吗?
操作系统版本:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
更新 3:
“你应该先 docker build”,在 nvidia-docker run 之前“我确实尝试过
docker build -t theano_secure -f Dockerfile.0.8.X.jupyter.cuda.secure .
返回:
Err http://developer.download.nvidia.com Release.gpg Unable to connect to developer.download.nvidia.com:http: [IP: 184.24.98.231 80]
我可以提取图像 docker pull kaixhin/theano 但这不能通过 Jupyter 笔记本以与 nvidia-docker run -it -p 8888:8888 tensorflow/tensorflow:latest-gpu 记录在 https://hub.docker.com/r/tensorflow/tensorflow/ 相同的方式运行。似乎没有可用的 docker Jupyter Theano 容器。
如何通过 Jupyter notebook 暴露 docker 实例 kaixhin/theano ?
我试过了:nvidia-docker run -d -p 8893:8893 -v --name theano2 kaixhin/theano start-notebook.sh 但收到错误:
docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247:
starting container process caused \"exec: \\\"start-notebook.sh\\\": executable file not found in $PATH\"\n".
修改kaixhin/theano docker 容器以便通过 Jupyter notebook 公开它?
【问题讨论】:
-
您应该自己构建
theano_secure映像,来自自述文件:docker build -t theano_secure -f Dockerfile.0.8.X.jupyter.cuda.secure . -
@gjtempleton 请查看更新。
标签: python docker theano nvidia jupyter-notebook