Last active
January 5, 2023 04:08
-
-
Save askiiart/6cc0241c0da65a83d37746026b68ed1f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# Remove docker | |
sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine podman runc | |
# Add repo | |
sudo yum install -y yum-utils | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
# Install docker | |
sudo yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin | |
# Start docker | |
sudo systemctl start docker | |
echo "Finished. Docker Engine (the CLI) is now installed." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment