Non-root Tensorflow based on original tensorflow (python 3) image
295
This Dockerfile extends the tensorflow/tensorflow:latest-gpu-py3 image by adding the ability to run in "non-root" mode meaning the output the jupyter notebook will be totally owned by a specific user (given a user id).
This Dockerfile use fixuid (https://github.com/boxboat/fixuid) to leverage the aforementioned ability.
This Dockerfile is based on tensorflow/tensorflow:latest-gpu-py3 than means it supports Python 3.
nvidia-docker build -t phizaz/tensorflow:gpu -f Dockerfile.gpu .
:keras-gpunvidia-docker build -t phizaz/tensorflow:keras-gpu -f Dockerfile.gpu.keras .
NB_PORT=10010
nvidia-docker run -it --rm \
--user=$UID:$UID \
-p $NB_PORT:$NB_PORT \
-v <src>:/notebooks \
phizaz/tensorflow:gpu \
jupyter notebook --ip="*" --port=$NB_PORT
With --user you can specify the runner of this image which in this case is the current user $UID.
Or with :keras-gpu instead.
You can quick start by seeing the test directory within this repo. There is a notebook
phizaz/tensorflow:keras-gpu - with Keras (only with tensorflow backend) with GPU supportphizaz/tensorflow:dcgan-gpu - A Dockerfile for carpedm20's DCGAN TensorflowVisit: https://github.com/phizaz/dockerfiles/tree/master/tensorflow/DCGAN_tensorflow
Content type
Image
Digest
Size
1.6 GB
Last updated
almost 9 years ago
docker pull phizaz/tensorflow:keras-gpu