Some Alpine Linux Setup Notes

Basic Alpine Linux setup notes/steps

No-caching apk

apk --no-cache

Check what is installed

apk --no-cache list -I

Essential Tools

apk --no-cache add nano curl
apk --no-cache add git

Firewall and Network Tools

Uncomment the line pointing to the community repository in /etc/apk/repositories.

Then:

apk --no-cache add ip6tables ufw iproute2-ss

If you want, comment back the line pointing to the community repository in /etc/apk/repositories.

Docker

Uncomment the line pointing to the community repository in /etc/apk/repositories.

Then:

apk --no-cache add docker docker-cli-compose

If you want, comment back the line pointing to the community repository in /etc/apk/repositories.

Update OpenRC:

rc-update add docker
rc-update -u

If you want your user to be able to use docker with doas:

# Run with root privilege
doas addgroup ${USER} docker

Python

apk --no-cache add python3 py3-pip