Quick configuration for Alpine Linux. Setting up docker & community repository.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alpine-Config/setup.sh

14 lines
400 B

#!/usr/bin/env bash
echo "Enabling Community Repository..."
su -c 'echo "http://dl-cdn.alpinelinux.org/alpine/v3.21/community" >> /etc/apk/repositories'
echo "Enabled. Updating & Installing Docker"
doas apk update
doas apk add docker
doas apk add docker-cli-compose
doas rc-update add docker default
doas service docker start
doas addgroup ${USER} docker
echo "All setups complete. Please reboot."