{"id":24813708,"url":"https://github.com/rabi-siddique/drm","last_synced_at":"2026-04-12T09:06:38.495Z","repository":{"id":260933064,"uuid":"875144483","full_name":"rabi-siddique/drm","owner":"rabi-siddique","description":"The drm script is a productivity tool for Docker users, designed to simplify container removal. Instead of copying container IDs from docker ps output, users can remove a container by specifying its sequence number in the list.","archived":false,"fork":false,"pushed_at":"2024-11-03T17:09:22.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T18:26:09.553Z","etag":null,"topics":["bash","bash-scripting","docker","docker-compose","linux","programming"],"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/rabi-siddique.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-10-19T07:57:37.000Z","updated_at":"2024-11-03T17:12:52.000Z","dependencies_parsed_at":"2024-11-03T18:29:00.991Z","dependency_job_id":null,"html_url":"https://github.com/rabi-siddique/drm","commit_stats":null,"previous_names":["rabi-siddique/drm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rabi-siddique/drm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabi-siddique%2Fdrm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabi-siddique%2Fdrm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabi-siddique%2Fdrm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabi-siddique%2Fdrm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rabi-siddique","download_url":"https://codeload.github.com/rabi-siddique/drm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabi-siddique%2Fdrm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280044566,"owners_count":26262907,"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","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"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":["bash","bash-scripting","docker","docker-compose","linux","programming"],"created_at":"2025-01-30T15:51:48.611Z","updated_at":"2025-10-20T07:44:03.174Z","avatar_url":"https://github.com/rabi-siddique.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"When working with Docker, I often find myself repeatedly running `docker ps` to identify the container ID that I need to remove. This process involves manually copying the container ID and then pasting it into the `docker rm` command — a step I find particularly tedious.\n\n# How `drm` works\n\nI've developed a custom script that enhances a little bit of my productivity by\nsaving me a Copy Paste :D . Here’s how it improves my workflow:\n\n- `View Containers`: I start by listing all active containers with docker ps.\n- `Select a Container`: Instead of copying IDs, I simply note the position of the container in the list, which is much quicker.\n- `Run My Script`: With the command `drm \u003cNumber\u003e`, where `\u003cNumber\u003e` is the sequence number of the container, I can remove it directly. No ID copying needed.\n- `Container Removed`: Just like that, the container is gone, putting a little less friction on my brain! 😂\n\n# Download and Install\n\n- Download the Script\n\n  ```bash\n  sudo curl -o /usr/local/bin/drm https://raw.githubusercontent.com/rabi-siddique/drm/refs/heads/main/drm\n  ```\n\n- Make the Script Executable\n\n  ```bash\n  sudo chmod +x /usr/local/bin/drm\n\n  ```\n\n- Usage\n  ```bash\n  drm \u003cContainer_Number\u003e\n  ```\n\n# OS\n\n- `MacOS`: The script has been tested on macOS and should work as expected.\n- `Linux`: If you encounter any issues on Linux, please report them to help improve the script.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabi-siddique%2Fdrm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frabi-siddique%2Fdrm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabi-siddique%2Fdrm/lists"}