Last active
March 5, 2021 13:01
-
-
Save hellt/344f57e25aa8ab4306214b26187b124f to your computer and use it in GitHub Desktop.
docker installation on centos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
sudo yum -y remove docker \ | |
docker-client \ | |
docker-client-latest \ | |
docker-common \ | |
docker-latest \ | |
docker-latest-logrotate \ | |
docker-logrotate \ | |
docker-engine | |
sudo yum install -y yum-utils | |
sudo yum-config-manager \ | |
--add-repo \ | |
https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum -y install docker-ce docker-ce-cli containerd.io | |
sudo systemctl enable docker | |
sudo systemctl start docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment