一、准备Docker环境
安装Docker for Mac 直接点击下载安装Docker,搭建本地学习环境。如果有条件可以直接使用阿里云容器服务器搭建云端学习环境。


二、本地环境搭建
1、下载Tensorflow镜像
命令:docker pull tensorflow/tensorflow

2、创建TensorFlow容器
docker run--name xiaolei-tensortflow-it-p8888:8888-v~/tensorflow:/notebooks/datatensorflow/tensorflow

出现错误停止 test-tensorflow 在移除
docker stop test-tensorflow
docker rm test-tensorflow
在运行run 命令

3、开启TensorFlow容器
在浏览器中输入localhost:8888 在出现的界面中输入上一步的token或者密码,就进入一下页面。

网友评论