Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gakas14/docker-on-aws-ec2-instance
Docker Installation on AWS EC2 Instance
https://github.com/gakas14/docker-on-aws-ec2-instance
aws containerization docker docker-image ec2-instance ngnix
Last synced: 8 days ago
JSON representation
Docker Installation on AWS EC2 Instance
- Host: GitHub
- URL: https://github.com/gakas14/docker-on-aws-ec2-instance
- Owner: gakas14
- Created: 2024-01-30T11:39:01.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-30T12:35:39.000Z (10 months ago)
- Last Synced: 2024-01-30T13:46:39.241Z (10 months ago)
- Topics: aws, containerization, docker, docker-image, ec2-instance, ngnix
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker-on-AWS-EC2-Instance
Docker 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.### Launch Amazon EC2
### Connect to instance
### To Update the instance
```
sudo yum update -y```
### Install Docker
```
sudo yum install docker -y
```### Start Docker
```
sudo service docker start
```### Check the service
```
sudo service docker status
```### Check the Docker version
```
sudo docker version
```### Let's search and pull the nginx image
```
sudo docker search nginx
sudo docker pull nginx
```### Check for the images on the docker
```
sudo docker images
```### Let's create a container with the nginx image
```
sudo docker run -d -p 80:80 nginx
sudo docker ps
```### Use the EC2 instance public IP to check for the Nginx welcome page
### to stop a container
```
sudo docker stop
```
### to remove the image
```
sudo docker rmi
```