Skip to content

Instantly share code, notes, and snippets.

@b1ek
Created November 18, 2022 12:12
Show Gist options
  • Save b1ek/437875f57bb35137d2b02b4f176f37e6 to your computer and use it in GitHub Desktop.
Save b1ek/437875f57bb35137d2b02b4f176f37e6 to your computer and use it in GitHub Desktop.
Install docker desktop on arch
#!/bin/bash
yes "" | sudo pacman -S gnome-terminal qemu
wget https://desktop.docker.com/linux/main/amd64/docker-desktop-4.14.1-x86_64.pkg.tar.zst?utm_source=docker&utm_medium=webreferral&utm_campaign=docs-driven-download-linux-amd64 -o docker.pkg.tar.zst
yes "" | sudo pacman -U docker.pkg.tar.zst
echo "$USER:100000:65536" >> sudo /etc/subuid
echo "$USER:100000:65536" >> sudo /etc/subgid
systemctl > /dev/null 2&>1
if [ $? -ne 0 ]; then
echo "It seems that you don't use systemd. Start the docker-desktop service manually using your init."
else
systemctl --user start docker-desktop
fi
echo "Docker desktop installed successfully"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment