{"id":15958514,"url":"https://github.com/vermavinay982/docker-helper-scripts","last_synced_at":"2025-04-04T10:48:54.012Z","repository":{"id":185366339,"uuid":"362439101","full_name":"vermavinay982/docker-helper-scripts","owner":"vermavinay982","description":"Regular docker commands consolidated in one repository.  ","archived":false,"fork":false,"pushed_at":"2022-03-25T12:24:25.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T20:46:57.302Z","etag":null,"topics":["beginner","computer-vision","docker","intermediate","professional"],"latest_commit_sha":null,"homepage":"","language":"Python","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/vermavinay982.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}},"created_at":"2021-04-28T11:13:34.000Z","updated_at":"2022-09-18T18:48:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d8b78c9-959e-4857-901c-61e0e7738f45","html_url":"https://github.com/vermavinay982/docker-helper-scripts","commit_stats":null,"previous_names":["vermavinay982/docker-helper-scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vermavinay982%2Fdocker-helper-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vermavinay982%2Fdocker-helper-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vermavinay982%2Fdocker-helper-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vermavinay982%2Fdocker-helper-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vermavinay982","download_url":"https://codeload.github.com/vermavinay982/docker-helper-scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166144,"owners_count":20894652,"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":["beginner","computer-vision","docker","intermediate","professional"],"created_at":"2024-10-07T14:04:56.350Z","updated_at":"2025-04-04T10:48:53.993Z","avatar_url":"https://github.com/vermavinay982.png","language":"Python","readme":"# Docker Demo - To get started with dockers :whale:\n[Link for Common Commands](https://github.com/vermavinay982/docker-demo/blob/main/README.md#few-other-important-commands)\n\n## Running the Code Above\n```\ndocker build -t colorapp . \ndocker run --rm -it -p 8000:8080 --name blue-app -e APP_COLOR=blue colorapp\n```\n\n### Analogy to remember order\n```\nport   -p your's:docker's\nvolume -v your's:docker's\n```\n\n\n### If want to run docker without ```sudo```\nGot permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: \n\nIf want to run docker without using sudo everytime - you need to add your user (who has root privileges) to docker group.\nFor this run following command\n\n```\nsudo groupadd docker\nsudo gpasswd -a $USER docker\nnewgrp docker or (logout/login your system)\ndocker run hello-world\n```\n[More Deep Info Here - about using docker w/o sudo](https://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo)\n\n## Few Other Important Commands \n---\n\n```\ndocker exec -it \u003ccontainer name\u003e bash\ndocker exec -it \u003ccontainer name\u003e python3\ndocker attach \u003ccontainer name\u003e\ndocker cp mycontainer:/filename.txt filename.txt\n```\n### Saving and Loading Image - Without Internet\n```\ndocker save -o \u003cpath for generated tar file\u003e \u003cimage name\u003e\ndocker save --output hello.tar colorapp\ndocker load --input hello.tar\n```\n### Run Python with display\n```\ndocker run --rm -it --env=\"DISPLAY\" --volume=\"$HOME/.Xauthority:/root/.Xauthority:rw\" python\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvermavinay982%2Fdocker-helper-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvermavinay982%2Fdocker-helper-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvermavinay982%2Fdocker-helper-scripts/lists"}