Install Docker Package

Task :

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 and docker-compose packages on App Server 1.

Start docker service.

Solutions :

$ ssh tony@stapp01
$ sudo yum install -y yum-utils
$ sudo yum-config-manager --add-repo
$ sudo yum update -y
$ sudo yum install docker-ce docker-ce-cli
$ sudo systemctl start docker
$ sudo systemctl status docker
$ sudo systemctl enable docker
$ sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ docker-compose --version

Leave a Reply

Your email address will not be published. Required fields are marked *