docker安装tensorflow notebook

1、搜索tensorflow镜像:

docker search tensorflow


2、使用较多的有以下两个镜像(任选其中一个即可):

jupyter/tensorflow-notebook
tensorflow/tensorflow:nightly-py3-jupyter 

3、拉取tensorflow镜像:

docker pull jupyter/tensorflow-notebook

docker pull tensorflow/tensorflow:nightly-py3-jupyter

4、创建tensorflow容器:

docker run --name tf -it -p 8888:8888 -v ~/docker/tensorflow:/home/jovyan/work  jupyter/tensorflow-notebook

docker run -it -p 8888:8888 -v ~/docker/tensorflow:/tf tensorflow/tensorflow:nightly-py3-jupyter
5、使用notebook: docker-machine ip 192.168.0.100 查看notebook: http://192.168.0.100:8888


标签: tensorflow、jupyter、notebook、docker、nightly、面试
  • 回复
隐藏