Forum Navigation
You need to log in to create posts and topics.

Install Docker & Docker Compose – Centos 8

Overview

Docker – is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels

Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration. Run dockercompose up and Compose starts and runs your entire app.

Docker Installation steps

add Docker-CE repository to your CentOS installation

dnf config-manager –add-repo=https://download.docker.com/linux/centos/docker-ce.repo

Once the repository is added, install the latest version of docker using the following command:

dnf install docker-ce –nobest -y

Start and Enable docker services

systemctl enable docker

systemctl start docker

Verify the docker version with the following command:

docker –version

 

Install Docker Compose

Install Docker Compose repository

curl -L https://github.com/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

* Note if you are missing curl command. install it using this command

dnf install curl -y

Make docker-compose downloaded file executable with the following command:

chmod +x /usr/local/bin/docker-compose

Verify the Compose version using the following command:

docker-compose –version

If you have found my website, guides, articles or videos useful, please buy me a coffee