You are on page 1of 3

DOCKER

Docker installing steps

• 1 #sudo yum install -y yum-utils


• 2 #sudo yum-config-manager \
• --add-repo \
• https://download.docker.com/linux/centos/docker-ce.repo
• ################################################################################################################
#
• 3 #sudo yum install docker-ce docker-ce-cli containerd.io (it will install docker latest version)

• if you want to install specific version then only..execute the following steps else skip below and goto step 4.

• #yum list docker-ce --showduplicates | sort -r


• #sudo yum install docker-ce-<VERSION_STRING> docker-ce-cli-<VERSION_STRING> containerd.io

• if you want to install docker-ce-18.09.1 version then command will be

• eg: sudo yum install docker-ce-18.09.1 docker-ce-cli-18.09.1 containerd.io


• ##########################################################################################################

• 4 #sudo systemctl start docker


Docker compose
• ##########

• Docker compose installation.

• check for the version you want install....here 1.23.2 is the version.pls change if requied.

• #sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-


compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
• #sudo chmod +x /usr/local/bin/docker-compose
• #docker-compose --version

You might also like