{"id":25270067,"url":"https://github.com/paraggoyal28/docker-useful-commands","last_synced_at":"2026-02-08T03:32:41.229Z","repository":{"id":186169636,"uuid":"604589222","full_name":"paraggoyal28/docker-useful-commands","owner":"paraggoyal28","description":"Dockerization of Spring Application","archived":false,"fork":false,"pushed_at":"2023-03-06T11:51:10.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-02T00:00:09.923Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paraggoyal28.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}},"created_at":"2023-02-21T11:33:53.000Z","updated_at":"2023-03-06T10:41:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b308a5f-fbd4-4a3e-b268-4480a2e5d05c","html_url":"https://github.com/paraggoyal28/docker-useful-commands","commit_stats":null,"previous_names":["paraggoyal28/docker-useful-commands"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/paraggoyal28/docker-useful-commands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paraggoyal28%2Fdocker-useful-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paraggoyal28%2Fdocker-useful-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paraggoyal28%2Fdocker-useful-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paraggoyal28%2Fdocker-useful-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paraggoyal28","download_url":"https://codeload.github.com/paraggoyal28/docker-useful-commands/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paraggoyal28%2Fdocker-useful-commands/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29219273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T03:18:47.732Z","status":"ssl_error","status_checked_at":"2026-02-08T03:15:31.985Z","response_time":57,"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":"2025-02-12T11:28:23.671Z","updated_at":"2026-02-08T03:32:41.202Z","avatar_url":"https://github.com/paraggoyal28.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker\nDocker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications.\n\n# Container\nSimply put, a container is a sandboxed process on your machine that is isolated from all other processes on the host machine.\n* Is a runnable instance of an image. You can create, start, stop, move, or delete a container using the DockerAPI or CLI.\n* Can be run on local machines, virtual machines or deployed to the cloud.\n* Is portable (can be run on any OS).\n* Is isolated from other containers and runs its own software, binaries, and configurations.\n\n# Container Image\nWhen running a container, it uses an isolated filesystem. This custom filesystem is provided by a container image. Since the image contains the container’s filesystem, it must contain everything needed to run an application - all dependencies, configurations, scripts, binaries, etc. The image also contains other configuration for the container, such as environment variables, a default command to run, and other metadata.\n\n# Useful commands in docker\n\n1. **docker build -t getting-started .**\n\nThe docker build command uses the Dockerfile to build a new container image\n\n2. **docker run -dp 3000:3000 getting-started**\n\nStarting a container \n\n3. **docker ps**\n\nList all containers\n\n4. **docker stop $container-id$**\n\nStops the container with given container id. To find the container id use **docker ps**\n\n5. **docker rm $container-id$** \n\nRemoves the container with given container id.\n\n6. **docker tag getting-started YOUR-USER-NAME/getting-started**\n\nGive the container image a new name\n\n7. **docker push YOUR-USER-NAME/getting-started**\n\nPushing an docker image to dockerhub\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparaggoyal28%2Fdocker-useful-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparaggoyal28%2Fdocker-useful-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparaggoyal28%2Fdocker-useful-commands/lists"}