{"id":21538437,"url":"https://github.com/sudipstha08/devops","last_synced_at":"2026-05-14T21:06:50.522Z","repository":{"id":137307658,"uuid":"366701332","full_name":"sudipstha08/devops","owner":"sudipstha08","description":"learning docker \u0026 devops :zap:","archived":false,"fork":false,"pushed_at":"2024-02-14T14:53:13.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T20:55:12.316Z","etag":null,"topics":["docker","docker-compose"],"latest_commit_sha":null,"homepage":"https://docs.docker.com/","language":"Dockerfile","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/sudipstha08.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":"2021-05-12T12:04:29.000Z","updated_at":"2025-02-23T05:30:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"f918851c-49de-45aa-bb23-ca0d8d678210","html_url":"https://github.com/sudipstha08/devops","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sudipstha08/devops","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudipstha08%2Fdevops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudipstha08%2Fdevops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudipstha08%2Fdevops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudipstha08%2Fdevops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sudipstha08","download_url":"https://codeload.github.com/sudipstha08/devops/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudipstha08%2Fdevops/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33043306,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["docker","docker-compose"],"created_at":"2024-11-24T04:11:58.542Z","updated_at":"2026-05-14T21:06:50.506Z","avatar_url":"https://github.com/sudipstha08.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://miro.medium.com/max/2404/1*JUOITpaBdlrMP9D__-K5Fw.png\" height=\"100\"\u003e\u003c/img\u003e\n- `Docker` is an open platform for developing, shipping, and running applications. \n- enables you to separate your applications from your infrastructure so you can deliver software quickly. \n- With Docker, you can manage your infrastructure in the same ways you manage your applications.\n- provides the ability to package and run an application in a loosely isolated environment called a container. \n- The isolation and security allow you to run many containers simultaneously on a given host\n  \n## Container\n- a `container` is simply another process on your machine that has been isolated from all other processes on the host machine. It has its own process, network and mounts\n\n\n## commands\n\n1. sudo docker run docker/whalesay cowsay boo\n2. docker run -\u003e run a container from an image if already exits otherwise gets it form docker hub\n3. docker ps - list all running containers\n4. docker ps -a -\u003e list all containers\n5. docker stop container_name\n6. docker rm container_name  - remove the container\n7. docker images -\u003e list all docker images\n8. sudo docker rmi image_name -\u003e remove image\n9. docker pull nginx -\u003e only pulls the image and not run the container\n10. docker run ubuntu sleep 5\n11. docker exec\n12. docker exec -it CONTAINER_ID /bin/sh\n13. docker run redis:4.0  -\u003e run specific version\n14. docker run -i container_name -\u003e for interactive mode\n13. docker run -it container_name -\u003e for interactive mode plus tunnel\n14. docker run -p 8306:3306 mysql -\u003e PORT mapping to run multiple\n15. docker build Dockerfile\n16. docker inspect\n17. docker login private-registry.io   \n18. docker run --cpus=.5 ubuntu -\u003e limits cpu usage to 50%\n19. docker run --memory=100m ubuntu -\u003e limits memoru usage to 100MB\n20. docker-compose up\n21. docker build -t myapp ./\n22. docker volume create vol_name\n23. docker run -- mount source=shared-stuff, target=/stuff \n\n### Deploy private registry\n```\n- docker run -d -p 5000:5000 --name registry registry:2\n- docker image tag my-image localhost:5000/my-image\n- docker push localhost:5000/my-image\n```\n\n\n## Docker images\n- When docker build image, it builds in a layered architecture. Each line of instructions in a `Dockerfile` creates a new layer\n\n## Storage drivers\n- AUFS `default for ubuntu`\n- ZFS\n- BTRFS\n- Device Mapper\n- Overlay\n- Overlay2\n\n## Docker compose\n- `Compose` is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration\n## Layered architecture\n## docker registry\n - central repository of all `docker images`\n\n\n\n\n1. https://docs.docker.com/get-started/#what-is-a-container\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudipstha08%2Fdevops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsudipstha08%2Fdevops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudipstha08%2Fdevops/lists"}