Skip to content

Can't attach to docker container after build: groupadd: group 'group3' already exists #5118

Open
@SandiCat

Description

@SandiCat

Steps to reproduce

  1. stack new test-proj simple
  2. cd test-proj
  3. append the following to stack.yaml
docker:
  enable: true
  persist: true
  detach: true
  1. stack build --docker-container-name test-cont
  2. docker container start -i test-cont

Expected

Get access to the docker container shell

Actual

docker container start -i test-cont exited with the following error:

Received ExitFailure 9 when running
Raw command: /usr/sbin/groupadd -o --gid 3 group3
Standard error:

groupadd: group 'group3' already exists

Stack version

$ stack --version
Version 2.1.3, Git revision 636e3a759d51127df2b62f90772def126cdf6d1f (7735 commits) x86_64 hpack-0.31.2

Method of installation

This AUR package: https://aur.archlinux.org/packages/stack-static

System information

$ uname -a
Linux pc 4.19.85-1-MANJARO #1 SMP PREEMPT Thu Nov 21 10:38:39 UTC 2019 x86_64 GNU/Linux

$ docker --version
Docker version 19.03.4-ce, build 9013bf583a

Related issues

Very similar error, but a patch was merged: #3092

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions