os-init/alpine/apps/docker/docker.sh

18 lines
302 B
Bash
Raw Permalink Normal View History

2023-11-19 16:20:23 +00:00
#!/bin/dash
2023-11-19 16:54:40 +00:00
rc-update del iptables
rc-update del ip6tables
2023-11-19 16:20:23 +00:00
apk del iptables ip6tables
2023-11-19 16:54:40 +00:00
# swapoff -a
# sed -i "/swap/d" /etc/fstab
2023-11-19 16:20:23 +00:00
2023-11-19 16:54:40 +00:00
# sed -i "s/# //" /etc/apk/repositories
2023-11-19 16:20:23 +00:00
apk add docker docker-compose
# sysctl -w net/netfilter/nf_conntrack_max=131072
rc-update add docker boot
service docker start