docker安裝和caffe安裝

2021-07-24 09:36:20 字數 1480 閱讀 2938

第一步:啟動ubuntu安裝docker

root@lyf-virtual-machine:~# apt-get install docker.io

第二步:

第三步:開啟docker

root@lyf-virtual-machine:~# sudo service docker start

root@lyf-virtual-machine:~# docker ps      

//列出當前所以執行的container

第四步:

root@lyf-virtual-machine:/home/lyf/liyongfen# docker load -i caffe-cpu-master.image.tar

//先複製caffe-cpu-master.image.tar到自己的目錄下(liyongfen)

root@lyf-virtual-machine:/home/lyf/liyongfen# docker images 

//將列出所有的容器映象

第五步:

root@lyf-virtual-machine:/home/lyf/liyongfen# docker run -itd -p 2012:22 --name=lyf_caffe --hostname=lyf-caffe --privileged xd/caffe-cpu-master

第六步:

root@lyf-virtual-machine:/home/lyf/liyongfen#  docker start lyf_caffe

root@lyf-virtual-machine:/home/lyf/liyongfen# docker exec -it lyf_caffe /bin/bash

root@lyf-caffe:/# /etc/init.d/ssh start

第八步:第一次要設定密碼

root@lyf-caffe:/# passwd 

root@lyf-caffe:/# rm -rf caffe/

root@lyf-caffe:/# cd opt

root@lyf-caffe:/opt# tar xvf caffe.tar   

要首先複製caffe.tar到opt檔案下面

第九步:

編譯:

cp makefile.config.example makefile.config  (修改只讓cpu跑)opt/caffe

# adjust makefile.config (for example, if using anaconda python, or if cudnn is desired)

make all

make test

make runtest

mkdir build

cd build

cmake ..

make all

make install

make runtest

docker安裝gamit gamit的安裝步驟

年月日,gamit 10.34 版發布了最新的修改補丁。修改後,新版本包含如下目錄及檔案 incremental updates com.10.34.tar.z etopo5.grd.10.0.tar example.10.34.tar.z gamit.10.34.tar.z help.10.34....

caffe安裝系列 安裝caffe

部落格新址 作業系統 ubuntu 14.04 gcc g 4.7.x opencv 2.4.11和3.0.0 matlab r2014b a python 2.7 安裝命令如下所示 解壓 tar zxvf glog 0.3.3.tar.gz 切換路徑 cd glog 0.3.3 sudo conf...

深度學習實戰Caffe 一 Caffe環境安裝

安裝vim git 等必備工具 sudo apt get install vim git 安裝boost sudo apt get install no install recommends libboost all dev安裝atlas開發包 sudo apt get install libatl...