CloudHealth / agent-install-helpers

6 stars 3 forks source link

Agent install scripts use incorrect group ID for docker group #6

Open davidmckenzie opened 6 years ago

davidmckenzie commented 6 years ago
$ cat install_cht_perfmon.sh | grep -i dock
    # make sure docker group exists so that agent has access if docker
    groupadd -f docker
    useradd cht_agent -m -U -G docker

This adds a user-land group for docker (with GID > 1000). Docker group needs to be a system group (< 1000) to install:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784690

Installing the CHT agent prior to installing docker will cause docker installation to fail.