Some Alpine Linux Setup Notes
Basic Alpine Linux setup notes/steps
Quick Links
No-caching apk
apk --no-cacheCheck what is installed
apk --no-cache list -IEssential Tools
apk --no-cache add nano curl
apk --no-cache add gitFirewall and Network Tools
Uncomment the line pointing to the community repository in /etc/apk/repositories.
Then:
apk --no-cache add ip6tables ufw iproute2-ssIf you want, comment back the line pointing to the community repository in /etc/apk/repositories.
Docker
# Uncomment out community repository in /etc/apk/repositories
apk --no-cache add docker docker-cli-compose
# Comment back community repository in /etc/apk/repositoriesUpdate OpenRC:
rc-update add docker
rc-update -uIf you want your user to be able to use docker with doas:
# Run with root privilege
doas addgroup ${USER} dockerPython
apk --no-cache add python3 py3-pipInstall root CA certificate
Copy the root CA certificate (e.g. ca.crt) to /usr/local/share/ca-certificates. Then rebuild the list.
cp ca.crt /usr/local/share/ca-certificates
update-ca-certificatesBash
# Uncomment out community repository in /etc/apk/repositories
apk --no-cache add bash shadow ncurses
# Comment back community repository in /etc/apk/repositories
chsh -s /bin/bash