I'm guessing you added the group as a non-system group? (resulting in "addgroup: The group `docker' already exists and is not a system group. Exiting.")
I think it would probably be sane to add a check similar to the one Docker itself uses (namely whether "/etc/group" includes a line that starts with "docker:" -- ie, not using "getent group" since Docker parses the file directly). something like: | if ! grep -q '^docker:' /etc/group 2>/dev/null; then | addgroup --system docker | fi --- See also: https://github.com/moby/moby/blob/3a633a712c8bbb863fe7e57ec132dd87a9c4eff7/daemon/listeners/group_unix.go#L20 https://github.com/opencontainers/runc/blob/69663f0bd4b60df09991c08812a60108003fa340/libcontainer/user/lookup_unix.go#L15 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1754562 Title: Already created docker group prevents package docker.io 1.13.1-0ubuntu1~16.04.2 install To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1754562/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs