Professional Documents
Culture Documents
2022mt13057 EdgeComputing Assignment2 AWS Docker
2022mt13057 EdgeComputing Assignment2 AWS Docker
2022mt13057 EdgeComputing Assignment2 AWS Docker
Topics to be covered:
Cloud
VM Creation
Docker
Create and Start an AWS EC2 Instance
Created a key pair while creating an EC2 instance and downloaded the .pem file
Connect to EC2 Instance using PuTTY
Using putty entered the ipv4 address of the EC instance and provided the private key file for the credential
authentication. User entered as ubuntu which is the default username.
Update the packages
Updating the system packages before installing Docker: command: sudo apt-get update
Instal Docker
Installing Docker: command: sudo apt-get install docker.io Checking Docker Version: command: docker –version
Pull the Docker Ubuntu Image
Now that we are done with the practical assignment, let’s release the resources for saving the cost.
To remove we need to first exit the container -> stop the docker container -> then remove container
Stop the docker: command used: sudo docker stop container_id
Remove docker: command used: sudo docker rm container_id
Terminate the EC2 Instance
Since our practical session is completed and the given problem statement is executed, we terminated
the AWS EC2 instance so that billing is stopped.