If you use GPU, please install Nvidia docker
https://github.com/NVIDIA/nvidia-docker
docker run -ti bvlc/caffe:cpu caffe --version>
nvidia-docker run -ti bvlc/caffe:gpu caffe --version
After above operations,you should see these images:
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nvidia/cuda latest 1b0262301072 4 days ago 1.94GB
bvlc/caffe gpu ba28bcb1294c 8 weeks ago 3.38GB
docker run -p 5555:8888 -i -t imagename /bin/bash # assign a port like 5555 or 7777
pip install jupyter notebook
wget https://raw.githubusercontent.com/waszy110/Docker-Caffe-Jupyter/master/jupyter_notebook_config.py -P /root/.jupyter/
jupyter notebook --allow-root
http://localhost:5555/ #password is 000
docker ps
docker commit containerid newimagename
docker run -p 5555:8888 -i -t newimagename /bin/bash
docker pull imagename
docker run -it imagename
docker stop containerid
docker rm containerid
docker rmi imageid
docker images