switch to docker
This commit is contained in:
parent
5265b76106
commit
91f2697bae
1 changed files with 12 additions and 3 deletions
|
@ -3,10 +3,19 @@
|
|||
command_exists() { type "$1" &>/dev/null; }
|
||||
|
||||
if command_exists "dnf"; then
|
||||
sudo dnf install podman -y
|
||||
systemctl enable --now --user podman
|
||||
#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-compose
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue