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:
Install
docker-ce
anddocker-compose
packages onApp Server 3
.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
0 comments:
Post a Comment