I run Ubuntu 16.04.5 LTS and I am trying to install Docker CE.

I followed the official Docker CE installation instructions:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
    $(lsb_release -cs) \
sudo apt-get update
sudo apt-get install docker-ce

The last command failed with the following message:

Setting up docker-ce (5:18.09.1~3-0~ubuntu-xenial) ...
groupadd: Invalid configuration: SYS_GID_MIN (101), GID_MIN (100), SYS_GID_MAX (99)
dpkg: error processing package docker-ce (--configure):
 subprocess installed post-installation script returned error exit status 4

How to fix the issue?


According to this discussion, the issue seems to be with the configuration specified in the /etc/login.defs file. I uncommented the following line

#SYS_GID_MAX          999

and the installation succeeded.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.