Files
onelab-k8s-1.27/resources/scripts/fedora/install_docker.sh
2026-03-20 10:15:15 +01:00

21 lines
499 B
Bash

#!/bin/bash
# Install the dnf-plugins-core package (which provides the commands to manage your DNF repositories)
sudo dnf -y install dnf-plugins-core -y
# Setup stable repository
sudo dnf config-manager \
--add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo -y
# Install the latest version of Docker Engine and containerd
sudo dnf install docker-ce docker-ce-cli containerd.io -y
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER