Skip to content

Instantly share code, notes, and snippets.

@brian9206
Last active June 8, 2022 11:37
Show Gist options
  • Save brian9206/cf5519fa670be7dcfbf785c30f4d79e2 to your computer and use it in GitHub Desktop.
Save brian9206/cf5519fa670be7dcfbf785c30f4d79e2 to your computer and use it in GitHub Desktop.
Install Docker on Rocky Linux
#!/bin/sh
# From https://www.tecmint.com/install-docker-in-rocky-linux-and-almalinux/
dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
dnf update -y
dnf install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
systemctl enable --now docker
echo 'alias docker-compose="docker compose"' >> /etc/profile.d/docker-compose.sh
@brian9206
Copy link
Author

brian9206 commented May 21, 2022

curl -s -L https://gist.githubusercontent.com/brian9206/cf5519fa670be7dcfbf785c30f4d79e2/raw/4b461d032ce1ccab6e324a31106dbe114dc63c60/InstallDockerOnRockyLinux.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment