Skip to content

Contains scripts for initializing a new EC2 instance by installing docker and run nginx reverse proxy

Notifications You must be signed in to change notification settings

digitalnus/aws-ec2-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Installation of docker in AWS EC2 instance

Copy the following code snipplet and paste it at the custom script when creating your AWS EC2 instance.

#!/bin/bash

#
# ec2-docker.sh
#
# Description:
# ec2-docker.sh contains scripts for installing docker onto an EC2 instance.
#
sudo yum update -y
sudo yum install docker -y
service docker start
docker -v

#
# Install git
#
sudo yum install git -y

mkdir -p /home/ec2-user/repo
cd ~/home/ec2-user/repo
git clone https://github.com/digitalnus/aws-ec2-docker.git

About

Contains scripts for initializing a new EC2 instance by installing docker and run nginx reverse proxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •