{"id":28992504,"url":"https://github.com/shadowslayer03/docker-commands","last_synced_at":"2026-02-02T23:12:46.007Z","repository":{"id":297907693,"uuid":"998247323","full_name":"ShadowSlayer03/Docker-Commands","owner":"ShadowSlayer03","description":"A repo acting as a go-to-guide for anyone to start using Docker.","archived":false,"fork":false,"pushed_at":"2025-06-08T08:44:32.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-08T09:23:42.645Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShadowSlayer03.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,"zenodo":null}},"created_at":"2025-06-08T07:28:52.000Z","updated_at":"2025-06-08T08:44:36.000Z","dependencies_parsed_at":"2025-06-08T09:33:54.475Z","dependency_job_id":null,"html_url":"https://github.com/ShadowSlayer03/Docker-Commands","commit_stats":null,"previous_names":["shadowslayer03/docker-commands"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ShadowSlayer03/Docker-Commands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowSlayer03%2FDocker-Commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowSlayer03%2FDocker-Commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowSlayer03%2FDocker-Commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowSlayer03%2FDocker-Commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShadowSlayer03","download_url":"https://codeload.github.com/ShadowSlayer03/Docker-Commands/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShadowSlayer03%2FDocker-Commands/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261792725,"owners_count":23210357,"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","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":"2025-06-25T02:40:11.038Z","updated_at":"2026-02-02T23:12:45.964Z","avatar_url":"https://github.com/ShadowSlayer03.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Commands\n---\n### Docker Desktop\nA GUI for managing images and containers.\n\n### Docker Hub\nA repository to download official, verified, or sponsored images.\n\n### Docker Engine\nResponsible for creating and running containers.\n\n### Images\nBlueprints for software.\n\n### Containers\nRunning instances of images.\n\n### Volumes\nExternal storage attached to containers.\n\n### Network\nThe network component that allows containers to communicate with each other.\n\n### Daemon\nA background process also called `dockerd`.\n\n---\n### General Commands\n\n1.  `docker login` - Log in to your Docker account.\n2.  `docker logout` - Log out from your Docker account.\n3.  `docker info` - Get system-wide Docker information.\n4.  `docker version` - Show the Docker version.\n5.  `docker help` - Get a list of all Docker commands.\n\n---\n## Image and Container Management\n---\n1.  `docker search \u003cimage-name\u003e` - Search for a Docker image in Docker Hub.\n\n2.  `docker pull \u003cimage-name\u003e` - Get the image locally.\n\n3.  `docker images` - View all local images.\n\n4.  `docker create \u003cimage-name\u003e` - Create a new container from an image.\n\n5.  `docker ps` - List running containers.\n\n6.  `docker ps -a` - List all containers, including exited ones.\n\n7.  `docker run \u003cimage-name\u003e` - Create and run a new container from an image.\n\n8.  `docker run -it \u003ccontainer-name\u003e` - Run a container in interactive mode. (Note: It's more common to use `docker run -it \u003cimage-name\u003e \u003ccommand\u003e` to run an interactive shell inside a container, but `docker run -it \u003ccontainer-name\u003e` can be used if the container has a default command to run interactively).\n\n9.  `docker run -p \u003chost-port\u003e:\u003ccontainer-port\u003e \u003cimage-name\u003e` - Run an image in a container where `\u003ccontainer-port\u003e` of the container is exposed at `\u003chost-port\u003e` on the local device.\n\n10. `docker commit \u003ccontainer-name\u003e \u003cusername\u003e/\u003cnew-image-name\u003e:\u003ctag\u003e` - Create a new custom image from a container with a custom name and tag.\n\n11. `docker cp \u003cfile-location\u003e \u003ccontainer-name\u003e:\u003ccontainer-path\u003e` - Copy a file from the local file system to a specified path within a container.\n\n12. `docker exec \u003ccontainer-name\u003e \u003ccommand\u003e` - Execute a command inside a running container.\n\n13. `docker build -t \u003cusername\u003e/\u003ccontainer-name\u003e:\u003ctag\u003e` - Build an image from the Dockerfile.\n\n13. `docker start \u003ccontainer-id\u003e` - Start an exited container.\n\n14. `docker stop \u003ccontainer-id\u003e` - Stop a running container.\n\n15. `docker pause \u003ccontainer-id\u003e` - Pause a running container.\n\n16. `docker rm \u003ccontainer-id\u003e` - Remove a container.\n\n17. `docker rmi \u003cimage-name\u003e` - Remove an image.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowslayer03%2Fdocker-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadowslayer03%2Fdocker-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowslayer03%2Fdocker-commands/lists"}