{"id":16434627,"url":"https://github.com/dflock/docker_aliases","last_synced_at":"2026-04-17T05:02:13.924Z","repository":{"id":146370182,"uuid":"50078031","full_name":"dflock/docker_aliases","owner":"dflock","description":"Docker bash aliases - new bash shell commands to make working with Docker containers \u0026 images easier.","archived":false,"fork":false,"pushed_at":"2017-04-29T01:47:53.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T02:52:05.223Z","etag":null,"topics":["aliases","docker","docker-aliases","dotfiles"],"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/dflock.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}},"created_at":"2016-01-21T03:03:25.000Z","updated_at":"2017-05-04T19:18:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"278a6482-3be3-438d-b835-a00f4ae4602e","html_url":"https://github.com/dflock/docker_aliases","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dflock/docker_aliases","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflock%2Fdocker_aliases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflock%2Fdocker_aliases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflock%2Fdocker_aliases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflock%2Fdocker_aliases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dflock","download_url":"https://codeload.github.com/dflock/docker_aliases/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflock%2Fdocker_aliases/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","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":["aliases","docker","docker-aliases","dotfiles"],"created_at":"2024-10-11T08:49:42.125Z","updated_at":"2026-04-17T05:02:13.907Z","avatar_url":"https://github.com/dflock.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker_aliases\n\nDocker bash aliases - new bash shell commands to make working with Docker containers \u0026 images easier.\n\n## Installation\n\nSave the `docker_aliases.sh` file to your home directory. Rename it to `.docker_aliases`:\n\n```bash\ncurl https://raw.githubusercontent.com/dflock/docker_aliases/master/docker_aliases.sh \u003e ~/.docker_aliases\n```\n\n\nThen and add this to your `~/.bashrc` file somewhere:\n\n```bash\nif [ -f ~/.docker_aliases ]; then\n  source ~/.docker_aliases\nfi\n```\n\nThen either close \u0026 re-open your terminal windows or do this in each one to make it refresh:\n\n```bash\n$ . ~/.bashrc\n```\n\n## Usage\n\nInstalling `docker_aliases` will get you some new commands to use in your bash terminal:\n\n### dps | docker_ps\n\nEnhanced version of `docker ps` which outputs two extra columns:\n\n- **IP**  : The private IP address of the container\n- **RAM** : The amount of RAM the processes inside the container are using\n\n```console\n  $ dps\n\n  CONTAINER ID        IMAGE           ... NAMES                 IP              RAM       \n  0a3359f50829        23f1a66316b3    ... container-one         172.17.0.139         57 MB\n  63a1b8ab9fb5        037e0afb42e4    ... container-two         172.17.0.137        490 MB\n  c9bbee45d255        872fb65cee6d    ... container-three       172.17.0.135       1696 MB\n```\n\nAccepts the same command line switches as `docker ps` - i.e. `dps -a` works.\n\n### docker_wipe\n\nThe nuclear option: Delete all containers \u0026 images, remove everything in `/var/lib/docker` and restart docker.\n\n**NB: Does not prompt for confirmation.**\n\n```console\n$ docker_wipe\n```\n\n### docker_all | dall\n\nPerform a docker cmd on all docker containers:\n\n```console\n$ docker_all start|stop|pause|unpause|\u003cany valid docker cmd\u003e\n$ dall start|stop|pause|unpause|\u003cany valid docker cmd\u003e\n```\n\n### docker_vol\n\nList the volumes for a given container:\n\n```console\n$ docker_vol \u003ccontainer name|id\u003e\n```\n\n### docker_mem\n\nList the RAM used by a given container.\nUsed by dps().\n\n```console\n$ docker_mem \u003ccontainer name|id\u003e\n```\n\n### docker_id\n\nReturn the ID of the container, given the name.\n\n```console\n$ docker_id \u003ccontainer_name\u003e\n```\n\n### docker_up\n\nReturn the status of the named container.\n\n```console\n$ docker_up \u003ccontainer_name\u003e\n```\n\n### docker_ip\n\nList the IP address for a given container:\nUsed by dps().\n\n```console\n$ docker_ip \u003ccontainer name|id\u003e\n```\n\n### docker_clean | dclean\n\nRemove any dangling images \u0026 exited containers\n\n```console\n$ docker_clean\n$ dclean\n```\n\n### docker_links | dlinks\n\nList the links for a given container:\n\n```console\ndocker_links \u003ccontainer name|id\u003e\ndlinks \u003ccontainer name|id\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdflock%2Fdocker_aliases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdflock%2Fdocker_aliases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdflock%2Fdocker_aliases/lists"}