Monday 11 March 2019

How to Install the Docker and run the simple docker file on EC2 by Raj Gupta



Update the server

sudo yum update

install the docker
sudo yum install docker

start the docker
sudo service docker start

check the docker 
docker –v

Now create the dictionary 
mkdir images

go to the dictionary
cd images/

Create the docker file
nano Dockerfile   ( for saving ctrl+o and for coming out from file ctrl+x)

docker build .    (to build docker image)

docker images   (to check whether docker image created or not)

Docker ps (to check created docker)

No comments:

Post a Comment