21 lines
553 B
Bash
Executable file
21 lines
553 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
command_exists() { type "$1" &>/dev/null; }
|
|
|
|
if command_exists "dnf"; then
|
|
#sudo dnf install podman -y
|
|
#systemctl enable --now --user podman
|
|
|
|
# install docker-compose
|
|
sudo dnf config-manager addrepo --from-repofile https://download.docker.com/linux/fedora/docker-ce.repo
|
|
sudo dnf install docker-ce-cli docker-ce
|
|
sudo dnf enable --now docker
|
|
|
|
# rootless
|
|
sudo dnf install fuse-overlayfs
|
|
sudo sh -eux <<EOF
|
|
# Load ip_tables module
|
|
modprobe ip_tables
|
|
EOF
|
|
dockerd-rootless-setuptool.sh install
|
|
fi
|