https://repo.anaconda.com/archive/Anaconda3-2023.07-2-Linux-x86_64.sh
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
pwd
apt-get 'update'
apt-get install -y \
'aria2' \
'cpio' \
'docker.io' \
'nvidia-container-toolkit' \
'nvidia-container-toolkit-base' \
'zstd' \
;
cd "$('dirname' '--' "${0}")"
mkdir -pv -- './nvidia_docker_image'
cd './nvidia_docker_image'
ls 'Anaconda3-2023.07-2-Linux-x86_64.sh' || aria2c -c -x16 -j16 'https://repo.anaconda.com/archive/Anaconda3-2023.07-2-Linux-x86_64.sh'
systemctl 'restart' 'docker'
docker 'search' 'cuda'
docker 'pull' 'nvidia/cuda:11.7.1-devel-ubuntu22.04'
nvidia-ctk '--version'
nvidia-ctk 'cdi' 'generate' '--output=/etc/cdi/nvidia.yaml'
nvidia-ctk 'cdi' 'generate' '--output=/var/run/cdi/nvidia.yaml'
grep ' name:' '/etc/cdi/nvidia.yaml'
nvidia-ctk 'runtime' 'configure' '--runtime=docker'
FROM nvidia/cuda:11.7.1-devel-ubuntu22.04
RUN apt-get update
RUN apt-get install -y fish fizsh build-essential aria2 cpio git-lfs squashfs-tools zstd
COPY 'Anaconda3-2023.07-2-Linux-x86_64.sh' /
RUN bash '/Anaconda3-2023.07-2-Linux-x86_64.sh' -b -p '/opt/anaconda'
RUN rm -vf -- '/Anaconda3-2023.07-2-Linux-x86_64.sh'
cd "$('dirname' '--' "${0}")"
mkdir -pv -- './nvidia_docker_image'
cp -vf -- './Dockerfile' './nvidia_docker_image'
cd './nvidia_docker_image'
docker build -t 'cuda_anaconda' .
docker 'run' '--rm' '-it' '--runtime=nvidia' '--gpus' 'all' 'cuda_anaconda' 'fish'
docker run --help
docker 'run' '--rm' '--runtime=nvidia' '--gpus' 'all' 'nvidia/cuda:11.6.2-base-ubuntu20.04' 'nvidia-smi'
docker 'run' '--rm' '--runtime=nvidia' '--gpus' 'all' 'nvidia/cuda:11.7.1-devel-ubuntu22.04' 'nvidia-smi'
docker image ls
cd "$('dirname' '--' "${0}")"
pwd
'./install_apt.sh'
'./download_anaconda.sh'
'./setup_ctk.sh'
'./setup_docker.sh'
'./build_docker.sh'