Install Docker Package Kodekloud

 


Last week the Nautilus DevOps team met with the application development team and decided to containerize several of their applications. The DevOps team wants to do some testing per the following:

  1. Install docker-ce and docker-compose packages on App Server 3.

  2. Start docker service.


 Solution:

 Log in to app server 3 ( Mentioned in the question)

 ssh banner@stapp03

 Install docker-ce in centos

 curl -fsSL https://get.docker.com -o get-docker.sh

 sudo sh get-docker.sh

 Post Installation

 sudo groupadd docker 

 sudo usermod -aG docker $USER

 newgrp docker 
 sudo systemctl start docker 
 docker --version 
 docker ps

 

 

Docker Compose Insatll

sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose 
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
 
 
 
 

 

Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment