{"id":22018452,"url":"https://github.com/flavienbwk/nvidia-cuda-mirror-docker","last_synced_at":"2026-04-18T02:31:39.141Z","repository":{"id":124243349,"uuid":"351881478","full_name":"flavienbwk/nvidia-cuda-mirror-docker","owner":"flavienbwk","description":"An all-in-one mirror for installing NVIDIA Docker.","archived":false,"fork":false,"pushed_at":"2021-04-01T20:15:37.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T09:35:25.594Z","etag":null,"topics":["cuda","docker","linux-mirror","mirror","nvidia","nvidia-docker","nvidia-docker2","offline","offline-capable"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flavienbwk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-26T18:46:56.000Z","updated_at":"2021-04-01T20:15:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"e51b01c1-2d2a-4872-84af-62c8717d866f","html_url":"https://github.com/flavienbwk/nvidia-cuda-mirror-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flavienbwk/nvidia-cuda-mirror-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fnvidia-cuda-mirror-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fnvidia-cuda-mirror-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fnvidia-cuda-mirror-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fnvidia-cuda-mirror-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flavienbwk","download_url":"https://codeload.github.com/flavienbwk/nvidia-cuda-mirror-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fnvidia-cuda-mirror-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cuda","docker","linux-mirror","mirror","nvidia","nvidia-docker","nvidia-docker2","offline","offline-capable"],"created_at":"2024-11-30T05:12:14.488Z","updated_at":"2026-04-18T02:31:39.134Z","avatar_url":"https://github.com/flavienbwk.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nvidia-cuda-mirror-docker\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://travis-ci.com/github/flavienbwk/nvidia-cuda-mirror-docker\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://travis-ci.com/flavienbwk/nvidia-cuda-mirror-docker.svg?branch=main\"/\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nWant to have fun with NVIDIA Docker ? This repository allows you to easily setup an NVIDIA Docker mirror that retrieves the following libraries :\n\n- [nvidia-docker](https://github.com/NVIDIA/nvidia-docker)\n- [libnvidia-container](https://github.com/NVIDIA/libnvidia-container)\n- [nvidia-container-runtime](https://github.com/NVIDIA/nvidia-container-runtime)\n\n## Downloading \u0026 updating\n\nRun the `mirror` container :\n\n```bash\ndocker-compose build\ndocker-compose up mirror\n```\n\nExpected size : **1.5 Go**\n\n## Serving\n\nRun the server :\n\n```bash\ndocker-compose up -d server\n```\n\nServer will run on [`localhost:8080`](http://localhost:8080)  \n\n## Client configuration\n\n**You must have Docker \u003e= 18 installed on your system before starting.**\n\n_If you use another distro than the one below, you'll have to configure your package configuration accordingly._\n\n### Ubuntu 18.04\n\nDownload [the appropriate NVIDIA drivers for your card](https://www.nvidia.com/Download/index.aspx) and execute it with `sh`\n\nCreate the `/etc/apt/sources.list.d/nvidia-cuda-docker-mirror.list` file :\n\n```bash\nsudo bash -c \"{\n    echo 'deb http://localhost:8080/libnvidia-container/ubuntu18.04/amd64 /'\n    echo 'deb http://localhost:8080/nvidia-container-runtime/ubuntu18.04/amd64 /'\n    echo 'deb http://localhost:8080/nvidia-docker/ubuntu18.04/amd64 /'\n} \u003e\u003e /etc/apt/sources.list.d/nvidia-cuda-docker-mirror.list\"\n```\n\n\u003e You may just want to copy past the content to some other file :\n\u003e ```txt\n\u003e deb http://localhost:8080/libnvidia-container/ubuntu18.04/amd64 /\n\u003e deb http://localhost:8080/nvidia-container-runtime/ubuntu18.04/amd64 /\n\u003e deb http://localhost:8080/nvidia-docker/ubuntu18.04/amd64 /\n\u003e ```\n\nYou'll have to import the `gpgkey` available at the root of the mirror :\n\n```bash\ncurl -s -L http://localhost:8080/gpgkey | sudo apt-key add -\n```\n\nYou can now :\n\n```bash\nsudo apt-get update\nsudo apt-get install -y nvidia-docker2\n```\n\n### CentOS 7\n\nYou may want to follow [cyberciti.biz's tutorial](https://www.cyberciti.biz/faq/how-to-install-nvidia-driver-on-centos-7-linux) to install `nvidia-smi` or see the TL;DR below\n\n\u003cdetails\u003e\n\u003csummary\u003eNVIDIA kernel configuration and install instructions\u003c/summary\u003e\n\n```bash\n# After configuring your ElRepo and EPEL repositories\nsudo yum group install \"Development Tools\"\nsudo yum install kernel-devel\nsudo yum -y install epel-release\nsudo yum -y install dkms\n```\n\nIn the `/etc/default/grub` file, append the following line to the `GRUB_CMDLINE_LINUX` property :\n\n```txt\nrd.driver.blacklist=nouveau nouveau.modeset=0\n```\n\nAnd then run :\n\n```bash\nsudo grub2-mkconfig -o /boot/grub2/grub.cfg\nsudo bash -c \"echo 'blacklist nouveau' \u003e /etc/modprobe.d/blacklist-nouveau.conf\" \nsudo mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img\nsudo dracut /boot/initramfs-$(uname -r).img $(uname -r)\nsudo reboot\n```\n\nOnce rebooted :\n\nDownload [the appropriate NVIDIA drivers for your card](https://www.nvidia.com/Download/index.aspx) and execute it with `sh`\n\n```bash\nsudo systemctl isolate multi-user.target\nsudo sh NVIDIA-Linux-x86_64-*.run\nsudo reboot\n```\n\n\u003c/details\u003e\n\nCreate a `/etc/yum.repos.d/nvidia-cuda-docker-mirror.repo` file :\n\n```conf\n[mymirror-nvidia-libnvidia-container]\nname=My Centos libnvidia-container Nvidia local mirror\nbaseurl=http://localhost:8080/libnvidia-container/centos7/$basearch/\ngpgkey=http://localhost:8080/gpgkey\nrepo_gpgcheck=1\ngpgcheck=0\nenabled=1\n\n[mymirror-nvidia-container-runtime]\nname=My Centos Nvidia container runtime local mirror\nbaseurl=http://localhost:8080/nvidia-container-runtime/centos7/$basearch/\ngpgkey=http://localhost:8080/gpgkey\nrepo_gpgcheck=1\ngpgcheck=0\nenabled=1\n\n[mymirror-nvidia-docker]\nname=My Centos Nvidia Docker local mirror\nbaseurl=http://localhost:8080/nvidia-docker/centos7/$basearch/\ngpgkey=http://localhost:8080/gpgkey\nrepo_gpgcheck=1\ngpgcheck=0\nenabled=1\n```\n\nYou can now :\n\n```bash\nsudo yum update\nsudo yum install nvidia-docker2\n```\n\n## Docker configuration annexe\n\nAfter installing nvidia-docker2, configure your `/etc/docker/daemon.json` conf file to use the NVIDIA container runtime :\n\n```json\n{\n    \"runtimes\": {\n        \"nvidia\": {\n            \"path\": \"nvidia-container-runtime\",\n            \"runtimeArgs\": []\n        }\n    },\n    \"default-runtime\": \"nvidia\"\n}\n```\n\nYou'll probably need a **reboot**. You can try your install by running :\n\n```bash\ndocker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi\n```\n\n## Notes\n\n:point_right: Please cite my work if you're using it !  \n:point_right: Feel free to send **pull requests** !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2Fnvidia-cuda-mirror-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflavienbwk%2Fnvidia-cuda-mirror-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2Fnvidia-cuda-mirror-docker/lists"}