Tom Willemse
7f03eea41e
Adding this install script, which adds a `docker' group, allows users to be added to the `docker' group, which in turn allows them to run the docker client without being root.
18 lines
239 B
Text
18 lines
239 B
Text
post_install()
|
|
{
|
|
if ! getent group docker >/dev/null; then
|
|
groupadd --system docker
|
|
fi
|
|
}
|
|
|
|
post_upgrade()
|
|
{
|
|
post_install $1
|
|
}
|
|
|
|
post_remove()
|
|
{
|
|
if getent group docker >/dev/null; then
|
|
groupdel docker
|
|
fi
|
|
}
|