{"id":18909449,"url":"https://github.com/gakas14/docker-on-aws-ec2-instance","last_synced_at":"2026-05-10T02:41:33.073Z","repository":{"id":219940255,"uuid":"750302920","full_name":"gakas14/Docker-on-AWS-EC2-Instance","owner":"gakas14","description":"Docker Installation on AWS EC2 Instance ","archived":false,"fork":false,"pushed_at":"2024-01-30T12:35:39.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T12:34:02.635Z","etag":null,"topics":["aws","containerization","docker","docker-image","ec2-instance","ngnix"],"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/gakas14.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}},"created_at":"2024-01-30T11:39:01.000Z","updated_at":"2024-01-30T12:38:16.000Z","dependencies_parsed_at":"2024-01-30T13:46:40.559Z","dependency_job_id":"4616a51f-33db-4533-b7ef-e71c12fde82b","html_url":"https://github.com/gakas14/Docker-on-AWS-EC2-Instance","commit_stats":null,"previous_names":["gakas14/docker-on-aws-ec2-instance"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gakas14%2FDocker-on-AWS-EC2-Instance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gakas14%2FDocker-on-AWS-EC2-Instance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gakas14%2FDocker-on-AWS-EC2-Instance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gakas14%2FDocker-on-AWS-EC2-Instance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gakas14","download_url":"https://codeload.github.com/gakas14/Docker-on-AWS-EC2-Instance/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239896934,"owners_count":19715122,"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","containerization","docker","docker-image","ec2-instance","ngnix"],"created_at":"2024-11-08T09:33:52.916Z","updated_at":"2026-03-07T00:30:20.096Z","avatar_url":"https://github.com/gakas14.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker-on-AWS-EC2-Instance\nDocker Installation on AWS EC2 Instance. This is to show how to install Docker on an AWS EC2 instance. We'll walk you through setting up Docker  on your Amazon EC2 server. \n\n\n### Launch Amazon EC2\n\n\u003cimg width=\"1020\" alt=\"Screen Shot 2024-01-30 at 7 46 47 PM\" src=\"https://github.com/gakas14/Docker-on-AWS-EC2-Instance/assets/74584964/d36f739e-f040-40bc-a655-74f91dfd13f2\"\u003e\n\n\u003cimg width=\"975\" alt=\"Screen Shot 2024-01-30 at 7 47 08 PM\" src=\"https://github.com/gakas14/Docker-on-AWS-EC2-Instance/assets/74584964/a5c96dc8-9576-497b-b4c3-17b40dc6c8b6\"\u003e\n\n### Connect to instance \n\n\u003cimg width=\"1201\" alt=\"Screen Shot 2024-01-30 at 7 48 41 PM\" src=\"https://github.com/gakas14/Docker-on-AWS-EC2-Instance/assets/74584964/020926e5-a225-4d15-8363-a36f4e53bc90\"\u003e\n\n### To Update the instance \n\n```\n  sudo yum update -y\n\n```\n\n### Install Docker\n```\nsudo yum install docker -y\n```\n\u003cimg width=\"1236\" alt=\"Screen Shot 2024-01-30 at 8 03 30 PM\" src=\"https://github.com/gakas14/Docker-on-AWS-EC2-Instance/assets/74584964/cd529b86-b023-4e26-8b3a-4f85724fe262\"\u003e\n\n\n### Start Docker \n```\nsudo service docker start\n```\n\u003cimg width=\"1276\" alt=\"Screen Shot 2024-01-30 at 8 05 05 PM\" src=\"https://github.com/gakas14/Docker-on-AWS-EC2-Instance/assets/74584964/253e4ea5-7985-4c97-a992-051e0ff2fe28\"\u003e\n\n\n### Check the service \n```\nsudo service docker status\n```\n\u003cimg width=\"1237\" alt=\"Screen Shot 2024-01-30 at 8 06 46 PM\" src=\"https://github.com/gakas14/Docker-on-AWS-EC2-Instance/assets/74584964/396a7926-25a6-486d-b4b4-8c9c45cb3f86\"\u003e\n\n\n\n### Check the Docker version\n```\nsudo docker version\n```\n\u003cimg width=\"1226\" alt=\"Screen Shot 2024-01-30 at 8 10 16 PM\" src=\"https://github.com/gakas14/Docker-on-AWS-EC2-Instance/assets/74584964/44fec7c5-0451-409a-b2f4-3006b5cf2d6b\"\u003e\n\n\n### Let's search and pull the nginx image\n```\nsudo docker search nginx\nsudo docker pull nginx\n```\n\u003cimg width=\"1231\" alt=\"Screen Shot 2024-01-30 at 8 14 30 PM\" src=\"https://github.com/gakas14/Docker-on-AWS-EC2-Instance/assets/74584964/59ba5579-28ba-49a1-adcb-a10420a30a54\"\u003e\n\n\n### Check for the images on the docker\n```\nsudo docker images\n```\n\u003cimg width=\"1226\" alt=\"Screen Shot 2024-01-30 at 8 15 37 PM\" src=\"https://github.com/gakas14/Docker-on-AWS-EC2-Instance/assets/74584964/5489fa16-9959-4375-b51f-fc745f62f658\"\u003e\n\n\n### Let's create a container with the nginx image\n```\nsudo docker run -d -p 80:80 nginx\nsudo docker ps\n```\n\u003cimg width=\"1232\" alt=\"Screen Shot 2024-01-30 at 8 20 02 PM\" src=\"https://github.com/gakas14/Docker-on-AWS-EC2-Instance/assets/74584964/47e0fb90-3fb8-47c6-baed-36e908858725\"\u003e\n\n\n### Use the EC2 instance public IP to check for the Nginx welcome page\n\u003cimg width=\"1258\" alt=\"Screen Shot 2024-01-30 at 8 21 45 PM\" src=\"https://github.com/gakas14/Docker-on-AWS-EC2-Instance/assets/74584964/272684e0-6bc0-4166-bbbd-34d87a2e3038\"\u003e\n\n### to stop a container\n```\nsudo docker stop \u003cid\u003e\n```\n### to remove the image\n```\nsudo docker rmi \u003cimage_name/image_id\u003e\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgakas14%2Fdocker-on-aws-ec2-instance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgakas14%2Fdocker-on-aws-ec2-instance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgakas14%2Fdocker-on-aws-ec2-instance/lists"}