{"id":27944879,"url":"https://github.com/devslem/docker-cuda-ubuntu-zsh","last_synced_at":"2025-05-07T12:54:59.575Z","repository":{"id":283641078,"uuid":"952436647","full_name":"DevSlem/docker-cuda-ubuntu-zsh","owner":"DevSlem","description":"Docker for CUDA Available Ubuntu with ZSH Shell","archived":false,"fork":false,"pushed_at":"2025-04-25T08:50:12.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T12:54:51.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/DevSlem.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":"2025-03-21T09:25:26.000Z","updated_at":"2025-04-25T08:50:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"163248ff-f657-4133-9363-d72b12d2a9e3","html_url":"https://github.com/DevSlem/docker-cuda-ubuntu-zsh","commit_stats":null,"previous_names":["devslem/docker-cuda-ubuntu-zsh"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevSlem%2Fdocker-cuda-ubuntu-zsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevSlem%2Fdocker-cuda-ubuntu-zsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevSlem%2Fdocker-cuda-ubuntu-zsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevSlem%2Fdocker-cuda-ubuntu-zsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevSlem","download_url":"https://codeload.github.com/DevSlem/docker-cuda-ubuntu-zsh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252882791,"owners_count":21819154,"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":[],"created_at":"2025-05-07T12:54:55.207Z","updated_at":"2025-05-07T12:54:59.557Z","avatar_url":"https://github.com/DevSlem.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker for CUDA Available Ubuntu with ZSH Shell\n\nThis repository provides Docker files for CUDA availalbe Ubuntu OS with ZSH shell.\n\nFor each version of Ubuntu, there are two Dockerfiles with different dependencies:\n\n1. `cuda12.8.1-ubuntu22.04-zsh/Dockerfile`\n2. `cuda11.3.1-ubuntu20.04-zsh/Dockerfile`\n\nThese Dockerfiles provide the following environments:\n\n* **Deep learning**:\n  * CUDA\n  * CUDNN\n  * Anaconda\n  * uv\n* **ZSH shell**:\n  * Oh My Zsh\n  * Powerlevel10k theme\n  * Autosuggestions plugin\n  * Syntax-highlighting plugin\n* **Essential packages**:\n  * build-essential\n  * wget\n  * vim\n  * curl\n  * git\n  * tmux\n  * openssh-server\n  * Github CLI\n  * colorls (only Ubuntu 22.04)\n  * and so on...\n\nBuild a Docker image by:\n\n```bash\ndocker build -t cuda12.8.1-ubuntu22.04-zsh:v1 ./cuda12.8.1-ubuntu22.04-zsh\n```\n\nRun the container by:\n\n```bash\ndocker run --rm -it --gpus all --name ai-dev-env cuda12.8.1-ubuntu22.04-zsh:v1\n```\n\nAlso, this repository provides `docker-compose-template.yml` for handling multiple containers. You can easily create and configure a `docker-compose.yml` file with `\u003cUSER_NAME\u003e`, `\u003cHOST_PORT\u003e` and `\u003cVERSION\u003e` by entering the following command:\n\n```bash\nbash config.sh\n```\n\nThen, Start the container by:\n\n```bash\nexport SSH_PUBLIC_KEY=\"\u003cYOUR_SSH_PUBLIC_KEYS\u003e\"\ndocker compose up --build -d\n```\n\n`nvidia-smi` doesn't show whether processes using GPU are running in Docker containers or not. To check it, you can use the `nvidia-docker-smi` shell script provided in this repository. Install nvidia-docker-smi shell script:\n\n```bash\nchmod +x nvidia-docker-smi.sh\nsudo mv nvidia-docker-smi.sh /usr/local/bin/nvidia-docker-smi\n```\n\nRun the command:\n\n```bash\nnvidia-docker-smi\n```\n\nExample output:\n\n```bash\nGPU  Container ID  Container Name             PID     Process  GPU Memory Usage (MiB)\n=====================================================================================\n1    abcdefg12345  testuser.ai-dev-env-base   884311  python   280\n2    hijklmn67890  otheruser.ai-dev-env-base  866294  python   6316\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevslem%2Fdocker-cuda-ubuntu-zsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevslem%2Fdocker-cuda-ubuntu-zsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevslem%2Fdocker-cuda-ubuntu-zsh/lists"}