V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Hzzone
V2EX  ›  Docker

docker 的 container 打开 jupyter notebook 的 kernel 一直 restart...

  •  
  •   Hzzone · 2017-05-06 15:15:44 +08:00 · 3811 次点击
    这是一个创建于 2749 天前的主题,其中的信息可能已经有所发展或是发生改变。
    docker run -it -p 8888:8888 -p 6006:6006 floydhub/dl-docker:cpu jupyter notebook
    

    执行这条命令之后,打开 127.0.0.1:8888 然后随便打开一个 notebook,kernel 选 python2,然后一直 restart..

    报错是:

    [I 06:59:41.148 NotebookApp] Adapting to protocol v4.0 for kernel 2b9e6146-e713-48b3-83eb-22132e186f58
    Shutting down iTorch	
    [I 07:00:20.604 NotebookApp] Kernel shutdown: 2b9e6146-e713-48b3-83eb-22132e186f58
    [I 07:00:20.624 NotebookApp] Kernel started: 910124dd-6bfa-4c5a-a35a-621ac4cbb2e3
    [I 07:00:23.625 NotebookApp] KernelRestarter: restarting kernel (1/5)
    [I 07:00:26.635 NotebookApp] KernelRestarter: restarting kernel (2/5)
    [I 07:00:29.648 NotebookApp] KernelRestarter: restarting kernel (3/5)
    [W 07:00:30.668 NotebookApp] Timeout waiting for kernel_info reply from 910124dd-6bfa-4c5a-a35a-621ac4cbb2e3
    [I 07:00:32.659 NotebookApp] KernelRestarter: restarting kernel (4/5)
    WARNING:root:kernel 910124dd-6bfa-4c5a-a35a-621ac4cbb2e3 restarted
    [W 07:00:35.673 NotebookApp] KernelRestarter: restart failed
    [W 07:00:35.674 NotebookApp] Kernel 910124dd-6bfa-4c5a-a35a-621ac4cbb2e3 died, removing from map.
    ERROR:root:kernel 910124dd-6bfa-4c5a-a35a-621ac4cbb2e3 restarted failed!
    
    3 条回复    2017-05-06 16:00:31 +08:00
    Hzzone
        1
    Hzzone  
    OP
       2017-05-06 15:20:04 +08:00
    救命啊...
    Hzzone
        2
    Hzzone  
    OP
       2017-05-06 15:59:46 +08:00
    这个问题已经解决了...
    参考链接[/dl-docker/issues/]( https://github.com/floydhub/dl-docker/issues/15)
    只需要执行
    ```
    docker run -it -p 8888:8888 -p 6006:6006 dl-docker:cpu sh -c 'jupyter notebook --ip=0.0.0.0 --no-browser'
    ```
    [docker 镜像链接]( https://store.docker.com/community/images/floydhub/dl-docker)
    Hzzone
        3
    Hzzone  
    OP
       2017-05-06 16:00:31 +08:00
    sorry...对 V2EX 的评论不是很了解...不支持 md
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5393 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 07:13 · PVG 15:13 · LAX 23:13 · JFK 02:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.