{"id":20179146,"url":"https://github.com/pratikshinde55/docker-custom_image","last_synced_at":"2025-10-17T15:51:08.957Z","repository":{"id":224348620,"uuid":"763051643","full_name":"Pratikshinde55/Docker-Custom_Image","owner":"Pratikshinde55","description":"Create Docker Custom Image using \"Docker commit \"command \u0026 \"Docker build (Dockerfile)\" command","archived":false,"fork":false,"pushed_at":"2024-12-24T13:25:27.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T16:50:35.403Z","etag":null,"topics":["aws-ec2","docker-build","docker-image","dockerfile"],"latest_commit_sha":null,"homepage":"","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/Pratikshinde55.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":"2024-02-25T12:38:37.000Z","updated_at":"2024-12-26T12:35:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf619837-1878-4d50-aca0-7a6c8b998bb2","html_url":"https://github.com/Pratikshinde55/Docker-Custom_Image","commit_stats":null,"previous_names":["pratikshinde55/docker-custom_image"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pratikshinde55%2FDocker-Custom_Image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pratikshinde55%2FDocker-Custom_Image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pratikshinde55%2FDocker-Custom_Image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pratikshinde55%2FDocker-Custom_Image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pratikshinde55","download_url":"https://codeload.github.com/Pratikshinde55/Docker-Custom_Image/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241616682,"owners_count":19991542,"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":["aws-ec2","docker-build","docker-image","dockerfile"],"created_at":"2024-11-14T02:25:22.394Z","updated_at":"2025-10-17T15:51:08.877Z","avatar_url":"https://github.com/Pratikshinde55.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker-Custom_Image\nCreate Custom image on Docker:\n\n![Screenshot 2024-02-25 181110](https://github.com/Pratikshinde55/Docker-Custom_Image/assets/145910708/6c34203b-d812-41cd-997f-6a311f533730)\n\n - Purpose of creating Custom image:\n \n When requirement is to create container with lot of custom settings. In container world we share images but not share container.\n\n### There are two ways to Create Custom image using Docker:\n  1. Docker Commit command\n  2. Docker Build command (Dockerfile)\n\n## Method:1 -[Custom image by Docker commit command]\n\nIn this method of Creating custom image, 1st we launch container \u0026 what we want to changes or add anything that on Container, Then create image from precreated container.\n      \n![Screenshot 2024-02-20 180117](https://github.com/Pratikshinde55/Docker-Custom_Image/assets/145910708/35dae902-cda1-4f0d-b6b2-446f54305eda)\n     \nUsing this \"commit\" command for create Custom image:\n     \n    docker commit commitOs1  myos1:v1\n\nRun container from Custom own image(myos1:v1)\n    \n    docker run -it --name mycontainer myos1:v1\n             \n![Screenshot 2024-02-20 180315](https://github.com/Pratikshinde55/Docker-Custom_Image/assets/145910708/e6d02b36-5a78-45c4-8e93-3ab0a48ca579)\n\n           \n## Method:2 - [Custom image by Dockerfile]\nThis method of creating Custom image use code(YAML), Creating own image by Code is fully Automatic way.\n \nIn this process of creating custom image, We put all code in one file that is \"Dockerfile\"\n\n    docker build -t myOwnimage:v1 .\n        \n\u0026 we also put code in custom name file but at Building image time we need to mention File name \u0026 path / directory\n\n    docker build -t myOwnimage:v1 -f myYmlcode /mycodefolder/ \n        \n\" -t \" --\u003e To Declare name to custom image(tag).\n   \n\" -f \" --\u003e Name of file where code kept(file).\n   \n\" . \" --\u003e Current directory.\n\n- Note:\n \nIn code when use interactive command then need to pass argument. example: yum install httpd -y\n      \n\"FORM\" is a keyword in code file to tell about base image.(from base image we create new image)\n\n\"RUN\" is keyword in code file for running commands.\n\nUse commad to build image from Code(Dockerfile):\n\n     docker build -t myimage:v1 .\n           \nRunning container from own custom image(myimage:v1):\n\n     docker run -it --name myos1 myimage:v1\n\n![Screenshot 2024-02-20 185049](https://github.com/Pratikshinde55/Docker-Custom_Image/assets/145910708/56be20a1-8464-41c9-becd-5ddf2a4fa8ee)\n         \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpratikshinde55%2Fdocker-custom_image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpratikshinde55%2Fdocker-custom_image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpratikshinde55%2Fdocker-custom_image/lists"}