{"id":39380771,"url":"https://github.com/rcv911/docker","last_synced_at":"2026-01-18T03:00:49.054Z","repository":{"id":209921911,"uuid":"184735413","full_name":"rcv911/docker","owner":"rcv911","description":"docker + gitlabCI templates","archived":false,"fork":false,"pushed_at":"2019-05-03T15:14:29.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-11-29T20:43:07.223Z","etag":null,"topics":["ci","docker","docker-compose","docker-image","templates"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/rcv911.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}},"created_at":"2019-05-03T10:10:18.000Z","updated_at":"2023-11-29T20:43:12.440Z","dependencies_parsed_at":"2023-11-29T20:43:10.967Z","dependency_job_id":"627c9b4c-669c-455f-9253-530de0b39e39","html_url":"https://github.com/rcv911/docker","commit_stats":null,"previous_names":["rcv911/docker"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/rcv911/docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcv911%2Fdocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcv911%2Fdocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcv911%2Fdocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcv911%2Fdocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rcv911","download_url":"https://codeload.github.com/rcv911/docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcv911%2Fdocker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28528026,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":["ci","docker","docker-compose","docker-image","templates"],"created_at":"2026-01-18T03:00:24.462Z","updated_at":"2026-01-18T03:00:48.954Z","avatar_url":"https://github.com/rcv911.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker usuful things\n\n## Description\n\nUseful commands that I use every day\n\n## Configuration\n\n-Docker Server Settings -\u003e [How to enable the remote API for docker](https://success.docker.com/article/how-do-i-enable-the-remote-api-for-dockerd)\n\u003eclient = docker.DockerClient(base_url='tcp://0.0.0.0:2376')\n\n\n## Docker Commands\n \n##### Show information\n\u003esudo docker ps --size\n\n##### Список image с указанием размера, количества и активных image\n\u003esudo docker system df\n\n##### Delete unused images\n\u003esudo docker image prune -a\n\n##### Delete unused images by CREATED date\n\u003esudo docker image prune -a --filter \"until=$(date +'%Y-%m-%dT%H:%M:%S' --date='-15 days')\"\n\n##### Delete all containers\n\u003edocker rm $(docker ps -a -q)\n\n##### Delete all images\n\u003edocker rmi $(docker images -q)\n\n##### Stop all images (better use kill)\n\u003edocker kill $(docker ps -a -q)\n\u003esudo docker kill $( sudo docker ps -a -q)\n\u003edocker stop $(docker ps -a -q)\n\n##### Restart all containers\n\u003edocker restart $(docker ps -a -q)\n\n##### Delete all stopped images\n\u003esudo docker rm $(sudo docker ps -q -f status=exited)\n\n##### Delete all dangling (unused) images\n\u003esudo docker rmi $(sudo docker images -q -f dangling=true)\n\n##### Delete all dangling (unused) volumes -\u003e volumes remains after deleting containers and images\n\u003esudo docker volume rm $( sudo docker volume ls -q) \n\n##### Stop(kill) all containers with name \u003ccontainer_name\u003e\n\u003esudo docker kill $( sudo docker ps -aqf \"name=\u003ccontainer_name\u003e\")\n\n##### Узнать  подключился ли процесс к определенному порту/сокету\n\u003esudo lsof -i : *port*\n\n##### Show container information in JSON:\n\u003edocker inspect container_name\n\n\n## Docker Image Controls\n\n##### Save image\n\u003edocker save -o *path_for_generated_tar_file* *image_name*\n\n##### Load image\n\u003edocker load -i *path_to_image_tar_file*\n\n## Links\n\n[Standard copy tools](https://www.shellhacks.com/ru/copy-files-ssh-10-examples/)\n\n## License\n\nFree","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcv911%2Fdocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frcv911%2Fdocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcv911%2Fdocker/lists"}