Repository navigation
Demonstration to EC2 instance
-
Open amazon AWS EC2 console.
-
Click on launch instance.
-
Select an Amazon Machine Image (AMI), ubuntu 20.04 .
-
Select t2.micro instance type from list and click on next: Configure Instance Details.
-
We are using default value for this step. Click on next: Add storage
-
Select default value of 8GIB disk volume. Click on next: add tag
-
Click on next: configure security group
-
Choose review and launch
-
Choose launch
-
Create new key value pair and launch instance
-
Download private key *.pem file
-
-
Install putty on local machine.
-
In putty-gen, generate private key for downloaded *.pem file and save it.
-
-
In AWS console select instance and assign elastic IP by following steps:
-
-
In AWS console set security group as below:
-
-
Open putty and enter Host ip address and select SSH from left side panel, than select "auth" and browse to add the private key.
-
-
Now you should be connected to server and access it.
-
-
Now install docker in your server(ubuntu)- steps to install docker in ubuntu
-
after installation of docker in ubuntu you should be able to access docker commands. For example, docker ps
-

-
-
On server run docker container from docker repository using command
$ sudo docker run -it -p 3000:3000 abhadani/photosite -
link to website running perfect!
*

























