blob: 465229a3e7d498f5c9164d86d6107d7ab45195f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
post_install() {
grep -q '^docker:' /etc/group || groupadd --system docker
echo "To make Docker fully functional, consider performing the following actions:"
echo " + Start the docker daemon:"
echo " $ sudo rc-service docker start"
echo " + (OPTIONAL) Start the docker daemon at boot:"
echo " $ sudo rc-update add docker default"
echo " + Add your user to the docker group to run the docker client without sudo:"
echo " $ sudo usermod -a -G docker <username>"
echo " Login again for the change to take effect or run the following command"
echo " for a change affecting only the current shell:"
echo " $ newgrp docker"
echo " + Enable IPv4 forwarding to allow internet connections inside the containers."
echo " See /etc/sysctl.d/docker.conf for WARNING and instructions."
}
pre_upgrade() {
rc-service docker stop
}
pre_remove() {
rc-service docker stop
grep -q '^docker:' /etc/group && groupdel docker
}
|