{"id":20580059,"url":"https://github.com/iyashwantsaini/docker_master","last_synced_at":"2026-04-16T19:45:27.188Z","repository":{"id":112236301,"uuid":"287090215","full_name":"iyashwantsaini/docker_master","owner":"iyashwantsaini","description":"All Basic Concepts of Docker","archived":false,"fork":false,"pushed_at":"2020-08-21T17:20:52.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T16:29:02.882Z","etag":null,"topics":["devops","docker","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/iyashwantsaini.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":"2020-08-12T18:42:39.000Z","updated_at":"2020-08-22T19:46:34.000Z","dependencies_parsed_at":"2023-05-11T21:16:15.369Z","dependency_job_id":null,"html_url":"https://github.com/iyashwantsaini/docker_master","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iyashwantsaini/docker_master","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_master","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_master/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_master/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_master/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iyashwantsaini","download_url":"https://codeload.github.com/iyashwantsaini/docker_master/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_master/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31902122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["devops","docker","kubernetes"],"created_at":"2024-11-16T06:19:54.014Z","updated_at":"2026-04-16T19:45:27.145Z","avatar_url":"https://github.com/iyashwantsaini.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker\n\n## Process \u0026 Resources\n\n    - Namespacing - Isolating resources per process.\n    - Control Groups (cgroup) - Limits amount of resources per process.\n    - These are available in linux os. \n    - Docker in windows runs in a linux image.\n\n## General\n\n- creation\n  - docker_file -\u003e docker_client -\u003e docker_server -\u003e usable_image\n- every linux process has 3 communication channels\n  - STDIN\n  - STDOUT\n  - STDERR\n- some command processors\n  - bash\n  - powershell\n  - sh\n  - zsh\n- unless specified containers don't share a file system\n\n## Commands\n\n### **docker create**\n\n- used to create a container\n\n```\n\u003e docker create \u003cimage_name\u003e\n```\n\n### **docker start**\n\n- used to run a container\n  - no output is shown to terminal\n\n```\n\u003e docker start \u003ccontainer_id\u003e\n```\n\n- run a container with output enabled\n\n```\n\u003e docker start -a \u003ccontainer_id\u003e\n```\n\n### **docker run**\n\n- used to create and run a container\n  - docker run = docker create + docker start\n\n```\n\u003e docker run \u003cimage_name\u003e \u003cdefault-command-override\u003e\n```\n\nExample -\n\n```\n\u003e docker run busybox echo hi there\nhi there\n```\n\nMutation -\n\nShows files inside container\n\n```\n\u003e docker run busybox ls\nbin\ndev\netc\nhome\nproc\nroot\nsys\ntmp\nusr\nvar\n```\n\n### **docker ps**\n\n- list all running containers\n\n```\n\u003e docker ps\n```\n\n- list all containers ever created\n    - each having an unique randomly generated name\n\n```\n\u003e docker ps --all\n05cc4dadee37        redis               \"docker-entrypoint.s…\"   6 days ago          Exited (255) 5 days ago    6379/tcp            clever_swirles\nd54908bc9243        busybox             \"sh\"                     6 days ago          Exited (0) 6 days ago                          affectionate_almeida\n16ae4d2b9369        hello-world         \"/hello\"                 8 days ago          Exited (0) 8 days ago                          kind_engelbart\n```\n\n### **docker system prune**\n\n- remove all stopped containers\n\n```\n\u003e docker system prune\nDeleted Containers:\n4273eb44e33ed03d9f707bbd2853727d21a10f7f895c66da2059f26c41eb9008\n4d4827c59e577df0ab0f2aa82838a7ca1601938eca58f25d0169c66514872cd0\n```\n\n### **docker logs**\n\n- to print the last logs(outputs) of the stopped container\n\n```\n\u003e docker logs \u003ccontainer_id\u003e\n```\n\n### **docker stop**\n\n- stops a running container\n    - sends a command (SIGTERM) to container to stop\n\n```\n\u003e docker stop \u003ccontainer_id\u003e\n```\n\n### **docker kill**\n\n- kills a running container\n    - forcefully stop container immediately\n\n```\n\u003e docker kill \u003ccontainer_id\u003e\n```\n\n### **docker exec**\n\n- running another command inside a running container\n  - multi command containers\n  - \"-it\" = allows us to provide input to the container\n    - \"-i\" helps connect to STDIN channel\n    - \"-t\" helps connect to show nicely formatted output\n\n```\n\u003e docker exec -it \u003ccontainer_id\u003e \u003ccommand\u003e\n```\n\nExample -\n\n```\n\u003e docker run redis\n1:M 21 Aug 2020 11:34:04.074 * Ready to accept connections\n\n(now in another terminal)\n\n\u003e docker ps\nCONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES\n33c28af2289a        redis               \"docker-entrypoint.s…\"   5 minutes ago       Up 5 minutes        6379/tcp            inspiring_bohr\n\n\u003e docker exec -t 33c28af2289a redis-cli\n127.0.0.1:6379\u003e\n```\n\nRunning Shell (Terminal) Inside Container -\n\n```\n\u003e docker run redis\n\n(now in another terminal)\n\n\u003e docker exec -t 33c28af2289a sh\n# type_commands_here\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyashwantsaini%2Fdocker_master","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiyashwantsaini%2Fdocker_master","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyashwantsaini%2Fdocker_master/lists"}