Docker学习系列(四):Docker下安装Jupyter

本文记录了一种通过Docker安装Jupyter Notebook的步骤,包括安装Docker、拉取Caffe镜像、运行Container、在Container内安装Jupyter、提交新镜像并创建新Container。最后,通过localhost:8888访问Jupyter Notebook。
摘要由CSDN通过智能技术生成

该过程与直接利用dockerfile相比,不是很方便,但也是一种方法,所以记录在此(有了上面提到的dockerfile方法,完全可以抛弃本方法)

(1)安装docker

(2) pull一个caffe的image
直接在docekr hub中搜索caffe,下载image kaixhin/caffe(Ubuntu Core 14.04 + Caffe. Includes Python interface.)
sudo docker pull kaixhin/caffe

(3)利用该image运行一个container
sudo docker run -it kaixhin/caffe bash

(4)在该container中安装jupyter notebook

pip install jupyter notebookyter

notebook是jupyter的名字

(5)commit安装好jupyter的image,重新命名

sudo docker commit --change='CMD jupyter notebook' serene_carson tingtingNew
  • seren
  • 0
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值