たまには、自分のイメージをカスタマイズしたくなるかも知れません。
# Dockerfile FROM tensorflow/tensorflow:latest-jupyter RUN pip install opencv-python-headless CMD [ "bash", "-c", "source /etc/bash.bashrc && jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root" ]
$ docker build -t mytest1 . $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE mytest1 latest 0c66acf727fa 14 minutes ago 1.82GB tensorflow/tensorflow latest-jupyter 2d87e2e84687 9 days ago 1.69GB $ docker run -it -p 8888:8888 mytest1:latest