DEV Community

Ayrton
Ayrton

Posted on

Best Centos Docker Server

Fast install for docker on Centos

sudo yum install -y yum-utils
sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce docker-ce-cli containerd.io
sudo systemctl start docker
sudo docker network create web
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

Enter fullscreen mode Exit fullscreen mode

Top comments (2)

Collapse
 
rhamdeew profile image
Rail

Thanks for post)

But for docker-compose working you need to install Python packages.

I use this Ansible-playbook for quick server provision with installing Python, Docker, Docker-compose and configuring ssh.
github.com/rhamdeew/ansible-docker...

Unfortunately, I did not record screencast with instructions for this playbook, but I recorded one for a similar playbook
youtube.com/watch?v=KApzBc6V6HY

Perhaps this solution will be useful to you)

Collapse
 
simerca profile image
Ayrton

Hi ! Thank for precision, for now it's just a quick note for me ^^ Maybe I extend my post with more details.

Best regards