Docker Image of Fastai + Jupyter: CUDA10, py3.7

Got it.

log in, and then git pull, reinstall, then git clone the part3 code.

To install and get ready for FastAI part 2 version3, run the following. (assuming Docker + GPU setup)

$ docker pull chaffix/fastai:stable

then

Preformatted text`docker run -it -d --rm \
>            --runtime=nvidia \
>            --shm-size=1g \
>            -p 8888:8888 \
>            -v $SAVE_DIR:/fastai/save_dir/ \
>            --name fastai_gpu_jup_container \
>            -e PASSWORD=$PASSWORD \
>            chaffix/fastai:stable

Copy what this returns… it is the name of the docker image running…

replace “[here]” with what the last thing returned.

docker exec -t -i [here] /bin/bash

you will get # prompt

then run

apt update
apt upgrade
cd fastai
git pull
tools/run-after-git-clone
pip install -e ".[dev]"
cd ..
mkdir fastai_part2v3
cd fastai_part2v3
git clone https://github.com/fastai/fastai_docs.git

3 Likes