{"id":17649287,"url":"https://github.com/abuccts/rocm-container-runtime","last_synced_at":"2025-07-11T22:08:58.683Z","repository":{"id":137823668,"uuid":"232538972","full_name":"abuccts/rocm-container-runtime","owner":"abuccts","description":"ROCm container runtime","archived":false,"fork":false,"pushed_at":"2020-02-19T11:54:40.000Z","size":3,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T16:57:16.499Z","etag":null,"topics":["container","docker","rocm","runtime"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abuccts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2020-01-08T10:33:49.000Z","updated_at":"2025-04-01T11:29:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"04fced00-0e90-4cec-8777-2562990005ff","html_url":"https://github.com/abuccts/rocm-container-runtime","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abuccts/rocm-container-runtime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abuccts%2Frocm-container-runtime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abuccts%2Frocm-container-runtime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abuccts%2Frocm-container-runtime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abuccts%2Frocm-container-runtime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abuccts","download_url":"https://codeload.github.com/abuccts/rocm-container-runtime/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abuccts%2Frocm-container-runtime/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264904811,"owners_count":23681278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["container","docker","rocm","runtime"],"created_at":"2024-10-23T11:25:22.925Z","updated_at":"2025-07-11T22:08:58.670Z","avatar_url":"https://github.com/abuccts.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"ROCm Container Runtime\n======================\n\nrocm-container-runtime is a wrapper for [runc](https://github.com/opencontainers/runc).\n\nIf environment variable `AMD_VISIBLE_DEVICES` is set in OCI config,\nthe runtime will inject necessary fields into OCI config to use AMD GPUs in containers.\n\nThe runtime is the same as [ROCm-docker](https://github.com/RadeonOpenCompute/ROCm-docker) on the host, but provides flexibility for AMD GPUs on Kubernetes.\n\nThe runtime achieves similar functionality to [nvidia-container-runtime](https://github.com/NVIDIA/nvidia-container-runtime), but is for AMD GPUs on [ROCm Platform](https://rocm.github.io/).\n\n\nInstallation\n------------\n\n```sh\ngit clone https://github.com/abuccts/rocm-container-runtime\ncd rocm-container-runtime\n# you can edit rocm-container-runtime.conf for configurations\nbash install.sh\n```\n\n\u003e NOTE: the runtime only works for Debian distributions currenly, changes are needed for other Linux distributions.\n\n\nDocker Engine Setup\n-------------------\n\n* Docker daemon configuration file\n\n    Add the following fields into `/etc/docker/daemon.json` and restart Docker service:\n    ```json\n    {\n      \"runtimes\": {\n        \"rocm\": {\n          \"path\": \"/usr/bin/rocm-container-runtime\",\n          \"runtimeArgs\": []\n        }\n      }\n    }\n    ```\n\n    You can optionally set it to default runtime in `/etc/docker/daemon.json`:\n    ```json\n    \"default-runtime\": \"rocm\"\n    ```\n\n\nDocker Usage\n------------\n\n```sh\n# use 4 AMD GPUs\ndocker run --runtime=rocm -e AMD_VISIBLE_DEVICES=0,1,2,3 --security-opt seccomp=unconfined rocm/rocm-terminal rocminfo\n\n# use the 3rd AMD GPU\ndocker run --runtime=rocm -e AMD_VISIBLE_DEVICES=2 --security-opt seccomp=unconfined rocm/rocm-terminal rocminfo\n```\n\n\u003e NOTE: To use AMD GPUs in Docker, please follow [ROCm's document](https://rocm.github.io/ROCmInstall.html#Ubuntu) to install drivers first.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabuccts%2Frocm-container-runtime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabuccts%2Frocm-container-runtime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabuccts%2Frocm-container-runtime/lists"}