{"id":19010813,"url":"https://github.com/th-blitz/docker-commands","last_synced_at":"2026-02-10T20:33:41.715Z","repository":{"id":126504237,"uuid":"501969218","full_name":"th-blitz/docker-commands","owner":"th-blitz","description":"docker commands ","archived":false,"fork":false,"pushed_at":"2022-06-14T15:51:52.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-30T22:23:28.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/th-blitz.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":"2022-06-10T08:50:12.000Z","updated_at":"2022-06-14T16:03:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"fca6a16a-2b8a-4867-a79c-92543f38e7db","html_url":"https://github.com/th-blitz/docker-commands","commit_stats":null,"previous_names":["th-blitz/docker-commands"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/th-blitz/docker-commands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th-blitz%2Fdocker-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th-blitz%2Fdocker-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th-blitz%2Fdocker-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th-blitz%2Fdocker-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/th-blitz","download_url":"https://codeload.github.com/th-blitz/docker-commands/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/th-blitz%2Fdocker-commands/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29314706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T17:48:59.043Z","status":"ssl_error","status_checked_at":"2026-02-10T17:45:37.240Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-08T19:12:33.633Z","updated_at":"2026-02-10T20:33:41.692Z","avatar_url":"https://github.com/th-blitz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-commands\n- pull a docker image from docker hub.\n\n      docker pull {image_name} \n\n- list all docker images.\n      \n      docker image ls \n\n- run a docker container.\n\n      docker run {image_name} \n\nhere the image runs and gets terminated.\n\n      docker run -d -t {image_name}\n      docker run -d -t --name={container_name} {image_name}\n      docker run --rm -d -t --name={container_name} {image_name}\n      docker run --rm -d -t --name={container_name} -p {local_host_port eg:8888}:{container_port eg:8888} {image_name}\n      docker run --rm -d -t --name={container_name} -p 8888:8888 --mount src=\"$(pwd)\",target=/app,type=bind {image_name}\n\nhere the image is running in the background.\n\n- list all running docker containers.\n\n      docker ps -a\n      docker ps\n\n- To access the running container.\n\n      docker exec -ti {container_name OR container_id} bash\n \n- To stop the container.\n\n      docker stop {container_name OR container_id}\n      \n- To delete the container.\n\n      docker rm {container_name OR container_id}\n      \n- To save the changes of container.\n\n      docker commit {container_name OR container_id} {new_image_name}\n\n- To run jupyter in a container.\n\n      jupyter notebook --ip='0.0.0.0' --port=8888 --no-browser --allow-root\n\n- Remove all stopped containers.\n\n      docker container prune\n    \n- Check docker build cache.\n\n      docker system df\n\n- Get IDs of all running containers.\n\n      docker ps -q\n      \n- Stop All running containers.\n\n      docker stop $(docker ps -q)\n      {replace docker stop with docker kill to foricble kill all running containers}    \n- Delete all dangling images.\n\n      docker image prune\n      \n- Remove all docker volumes.\n\n      docker volume prune\n      \n- Remove all docker network.\n\n      docker network prune\n      \n- Remove everything !!\n\n      docker system prune\n      \n- \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fth-blitz%2Fdocker-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fth-blitz%2Fdocker-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fth-blitz%2Fdocker-commands/lists"}