{"id":15678512,"url":"https://github.com/zurfyx/docker-most-frequent","last_synced_at":"2026-05-04T03:31:27.546Z","repository":{"id":111159589,"uuid":"80855204","full_name":"zurfyx/docker-most-frequent","owner":"zurfyx","description":"Docker most frequent commands.","archived":false,"fork":false,"pushed_at":"2017-02-17T14:47:32.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T07:13:16.512Z","etag":null,"topics":["commands","docker","docker-compose","list"],"latest_commit_sha":null,"homepage":null,"language":null,"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/zurfyx.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":"2017-02-03T18:05:54.000Z","updated_at":"2022-11-18T08:56:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb84a110-cb81-46bc-9ba0-4d8fa230a84c","html_url":"https://github.com/zurfyx/docker-most-frequent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zurfyx/docker-most-frequent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurfyx%2Fdocker-most-frequent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurfyx%2Fdocker-most-frequent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurfyx%2Fdocker-most-frequent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurfyx%2Fdocker-most-frequent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zurfyx","download_url":"https://codeload.github.com/zurfyx/docker-most-frequent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurfyx%2Fdocker-most-frequent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32593739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"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":["commands","docker","docker-compose","list"],"created_at":"2024-10-03T16:22:04.371Z","updated_at":"2026-05-04T03:31:27.527Z","avatar_url":"https://github.com/zurfyx.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker most frequent commands\n\n- [Docker](#docker)\n- [Docker Compose](#docker-compose)\n- [Example Docker setups](#example-docker-setups)\n\n## Docker\n\n### Run image:\n\n`docker run docker/whalesay`\n\n`docker run docker/whalesay cowsay boo # Run image with parameters.`\n\n`docker run docker/whalesay -d # Run in the background.`\n\n### Run container:\n\n`docker start 97d0c0043df3 # Start a container in the background.`\n\n`docker restart 97d0c0043df3 # Restart a container.`\n\n`docker attach 97d0c0043df3 # Attach a terminal \u0026 stdin to the container.`\n\n### Build image\n\n`docker build -t name/repo:version . # Builds a docker image out of the Dockerfile.`\n\n`docker build --rm=false -t name/repo:version . # Builds a docker image wihtout deleting the container.`\n\n`docker commit 97d0c0043df3 name/new-repo # Builds a docker image from a container.`\n\n### Remove\n\n`docker rm 97d0c0043df3 # Remove one or more containers.`\n\n`docker rmi docker/whalesay # Remove one or more images.`\n\n### Monitor:\n\n`docker containers`\n\n`docker images`\n\n`docker ps # Show running containers.`\n\n`docker ps -a # Show all containers.`\n\n## Docker Compose\n\n`docker-compose up`\n\n`docker-compose up -d # Run in the background.`\n\n`docker-compose up --force-recreate # Force recreate containers` ([be aware](https://github.com/docker/compose/issues/2127))\n\n`docker-compose up --build # Force build images on start.`\n\n`docker-compose -f docker-compose.dev.yml up`\n\n`docker-compose -f docker-compose.yml -f docker-compose.dev.yml up # Extend docker-compose.yml configuration file.`\n\n`docker-compose build # Create or rebuild services.`\n\n`docker-compose pull # Pull the latest image(s) version.`\n\n`docker-compose run web # Start a specific docker-compose service.`\n\n`docker-compose run web npm start # Override default service command.`\n\n`docker-compose run web /bin/bash -c \"npm start\"`\n\n`docker-compose --service-ports run web npm start # Run command with the service's ports enabled and mapped to the host.`\n\n`docker-compose stop # Stop docker containers`\n\n`docker-compose rm -f # Remove containers`\n\n## Example Docker setups\n\n[Node.js + MongoDB](https://github.com/zurfyx/docker-node)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzurfyx%2Fdocker-most-frequent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzurfyx%2Fdocker-most-frequent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzurfyx%2Fdocker-most-frequent/lists"}