该过程与直接利用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