group-safety

This commit is contained in:
Jackson Delahunt 2019-02-15 16:32:12 +11:00
parent c44e303084
commit 4423f9cef7

View file

@ -39,6 +39,12 @@ echo 'fs.inotify.max_user_watches=1000000' >> /etc/sysctl.conf
echo '* soft nofile 1000000' >> /etc/security/limits.conf
echo '* hard nofile 1000000' >> /etc/security/limits.conf
# Remove any existing group with id 999 that is not the docker group
getent group 999 | \
grep -v docker | \
cut -d: -f1 | \
xargs groupdel
# Install Docker
sh -c "$(curl -fsSL get.docker.com)" && \
usermod -aG docker $DESKTOP_ENVIRONMENT_USER