DEV Community


Posted on

Best Centos Docker Server

Fast install for docker on Centos

sudo yum install -y yum-utils
sudo yum-config-manager \
    --add-repo \
sudo yum install -y docker-ce docker-ce-cli
sudo systemctl start docker
sudo docker network create web
sudo curl -L "$(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)

rhamdeew profile image

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.

Unfortunately, I did not record screencast with instructions for this playbook, but I recorded one for a similar playbook

Perhaps this solution will be useful to you)

simerca profile image

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

Best regards