{"id":20206029,"url":"https://github.com/kaplanmaxe/docker-cheatsheet","last_synced_at":"2026-03-05T16:33:00.693Z","repository":{"id":84708618,"uuid":"83511257","full_name":"kaplanmaxe/docker-cheatsheet","owner":"kaplanmaxe","description":"Personal cheatsheet to docker","archived":false,"fork":false,"pushed_at":"2017-03-01T04:25:13.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T20:47:37.543Z","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/kaplanmaxe.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}},"created_at":"2017-03-01T04:24:32.000Z","updated_at":"2017-03-01T04:24:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"746e4f28-e35a-4148-9458-274fbe9bce31","html_url":"https://github.com/kaplanmaxe/docker-cheatsheet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaplanmaxe%2Fdocker-cheatsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaplanmaxe%2Fdocker-cheatsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaplanmaxe%2Fdocker-cheatsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaplanmaxe%2Fdocker-cheatsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaplanmaxe","download_url":"https://codeload.github.com/kaplanmaxe/docker-cheatsheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241644543,"owners_count":19996177,"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":"2024-11-14T05:20:49.646Z","updated_at":"2026-03-05T16:33:00.661Z","avatar_url":"https://github.com/kaplanmaxe.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Cheat Sheet\n\n##### Start new docker container:\n`docker run -ti ubuntu bash`\n\n##### Find all containers:\n`docker ps`\n\n##### Find last exited container\n`docker ps -l`\n\n##### Convert container to image\n`docker commit \u003cCURRENT_NAME\u003e \u003cNEW_NAME\u003e`\n\n##### \"SSH\" into container\n`docker exec -ti \u003cTEMP_NAME\u003e bash`\n\n##### Run image and open bash\n`docker run -ti \u003cNAME\u003e bash`\n\nTO KEEP RUNNING\n\n`docker run -d -ti \u003cNAME\u003e bash`\n\n##### View container logs\n`docker logs \u003cNAME\u003e`\n\n##### Build from docker file\n`docker build -t \u003cNEW_CONTAINER_NAME\u003e .`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaplanmaxe%2Fdocker-cheatsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaplanmaxe%2Fdocker-cheatsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaplanmaxe%2Fdocker-cheatsheet/lists"}