docker-compose文件
tf_2_0_0.yml
version: '2.2'
services:
tensorflow_2_0_0:
image: tensorflow/tensorflow:latest-py3-jupyter
working_dir: /tf
ports:
- 8888:8888
volumes:
- /home/users:/tf/users
restart: always
mem_limit: 24g
cpuset: 0,1,2,3,4,5,6,7
启动命令
docker-compose -f tf_2_0_0.yml up -d
需要dokcer logs -f 来看jupyter的token
该版本的image大小1.22G,下载无需翻墙
gl, hf