Skip to content

Instantly share code, notes, and snippets.

@hellt
Last active March 5, 2021 13:01
Show Gist options
  • Save hellt/344f57e25aa8ab4306214b26187b124f to your computer and use it in GitHub Desktop.
Save hellt/344f57e25aa8ab4306214b26187b124f to your computer and use it in GitHub Desktop.
docker installation on centos
#!/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