更换源
sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && apk update
alpine lxc 开启ssh
apk add --no-cache openssh-server && cd /etc/ssh && ssh-keygen -A && rc-update add sshd boot && service sshd start
时区
apk add alpine-conf && /sbin/setup-timezone -z Asia/Shanghai && apk del alpine-conf
docker
apk add docker && rc-update add docker boot && service docker start
dns
mkdir dnsdata docker run -d \ --name paopaodns \ -v /root/dnsdata:/data \ -e CNAUTO=yes \ --restart always \ -p 53:53/tcp -p 53:53/udp \ dockerproxy.cn/sliamb/paopaodns 自检 docker exec -it paopaodns test.sh 重载外挂文件 docker exec paopaodns reload.sh