{"id":26201856,"url":"https://github.com/j3soon/docker-mig-manager","last_synced_at":"2026-05-28T08:31:18.527Z","repository":{"id":272808694,"uuid":"862483445","full_name":"j3soon/docker-mig-manager","owner":"j3soon","description":"Unofficial minimal instructions for managing NVIDIA Multi-Instance GPU (MIG) in a docker container","archived":false,"fork":false,"pushed_at":"2025-09-05T05:39:24.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-04T05:41:46.135Z","etag":null,"topics":["docker","multi-instance-gpu","nvidia-container-toolkit","nvidia-docker"],"latest_commit_sha":null,"homepage":"https://tutorial.j3soon.com/hpc/extras/docker-mig-manager/","language":null,"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/j3soon.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":"2024-09-24T17:13:45.000Z","updated_at":"2025-09-07T07:29:06.000Z","dependencies_parsed_at":"2025-01-16T19:27:46.547Z","dependency_job_id":null,"html_url":"https://github.com/j3soon/docker-mig-manager","commit_stats":null,"previous_names":["j3soon/docker-mig-manager"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/j3soon/docker-mig-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j3soon%2Fdocker-mig-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j3soon%2Fdocker-mig-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j3soon%2Fdocker-mig-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j3soon%2Fdocker-mig-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j3soon","download_url":"https://codeload.github.com/j3soon/docker-mig-manager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j3soon%2Fdocker-mig-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33601380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"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":["docker","multi-instance-gpu","nvidia-container-toolkit","nvidia-docker"],"created_at":"2025-03-12T03:24:02.229Z","updated_at":"2026-05-28T08:31:18.510Z","avatar_url":"https://github.com/j3soon.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker MIG Manager\n\nUnofficial minimal docker instructions for managing NVIDIA Multi-Instance GPU (MIG) in containers.\n\nPrerequisites:\n\n- [NVIDIA Driver](https://ubuntu.com/server/docs/nvidia-drivers-installation)\n- [Docker](https://docs.docker.com/engine/install/ubuntu/)\n- [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html)\n- [Enable MIG Mode](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#enable-mig-mode)\n\nTake A100 as an example, run:\n\n```sh\ndocker run --rm -it --gpus all \\\n    --cap-add=SYS_ADMIN \\\n    -e NVIDIA_MIG_CONFIG_DEVICES=all \\\n    ubuntu\n\n# in the container\n# Create two `3g.20gb` GPU instances (GI) and corresponding compute instances (CI)\nnvidia-smi mig -cgi 9,3g.20gb -C\n# List the available CIs and GIs\nnvidia-smi mig -lgi; nvidia-smi mig -lci;\n# Destroy all the CIs and GIs\nnvidia-smi mig -dci; nvidia-smi mig -dgi;\n```\n\nThis should also work on A30/H100/H200 by substituting the MIG profile to [a supported one](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#supported-mig-profiles).\n\nNote: `--runtime=nvidia`, `-e NVIDIA_VISIBLE_DEVICES=all`, and `-e NVIDIA_DRIVER_CAPABILITIES=all` may be required depending on your environment and use cases.\n\n## References\n\nSome references I found useful during the investigation.\n\n- [MIG User Guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/)\n  - [9.4. Creating GPU Instances](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#creating-gpu-instances)\n  - [9.6. Destroying GPU Instances](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#destroying-gpu-instances)\n  - [10. Device Nodes and Capabilities](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#device-nodes-and-capabilities)\n- [The NVIDIA Container Runtime](https://github.com/NVIDIA/nvidia-container-toolkit/tree/main/cmd/nvidia-container-runtime#nvidia_mig_config_devices)\n  - [`NVIDIA_MIG_CONFIG_DEVICES`](https://github.com/NVIDIA/nvidia-container-toolkit/tree/main/cmd/nvidia-container-runtime#nvidia_mig_config_devices)\n- [NVIDIA MIG Manager For Kubernetes](https://catalog.ngc.nvidia.com/orgs/nvidia/teams/cloud-native/containers/k8s-mig-manager/layers)\n\n## Acknowledgement\n\nThanks [@Irene-Ting](https://github.com/Irene-Ting) for discussions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj3soon%2Fdocker-mig-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj3soon%2Fdocker-mig-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj3soon%2Fdocker-mig-manager/lists"}