访问在nvidia-docker容器中运行的jupyter笔记本所需的登录密码 [英] login password required to access jupyter notebook running in nvidia-docker container
问题描述
在Ubuntu 16.04(NVIDIA GPU GeFORCE 840M)成功安装后,我按以下顺序运行此命令以在docker容器中运行tensoflow.
I run this command in the following order in order to run tensoflow in docker container after successful installation in Ubuntu 16.04 (NVIDIA GPU GeFORCE 840M) .
1.sudo服务docker启动2. sudo nvidia-docker运行-it -p 8888:8888 gcr.io/tensorflow/tensorflow:latest-gpu
1.sudo service docker start 2.sudo nvidia-docker run -it -p 8888:8888 gcr.io/tensorflow/tensorflow:latest-gpu
然后,我尝试通过键入localhost:8888在firefox浏览器中访问jupyter,并要求我在浏览器中输入登录密码.解决办法是什么?
Then I try to access jupyter in firefox browser by typing localhost:8888 and I am asked to enter the login password in the browser. What is the solution?
推荐答案
添加选项"-e PASSWORD = password"来设置环境变量.设置的密码即为jupyter登录的密码.
add option "-e PASSWORD=password" to set the environment variable. The set password is then the password for the jupyter login.
这篇关于访问在nvidia-docker容器中运行的jupyter笔记本所需的登录密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!