Gitlab-ce in Docker for Mac have a large number of CLOSE_WAIT and FIN_WAIT_2

I use docker run to deploy gitlab-ce. After the deployment is successful, the number of CLOSE_WAIT and FIN_WAIT_2 is constantly increasing and cannot be destroyed. How should I solve this problem?

This is my startup script:

sudo docker run -d --hostname 10.1.4.74:3380 --restart always -p 3380:3380 -p 3322:22 -p 3443:443 -v /Users/access/wsj/store/gitlib/config:/etc/gitlab -v /Users/access/wsj/system/localtime:/etc/localtime:ro -v /Users/access/wsj/store/gitlib/logs:/var/log/gitlab -v /Users/access/wsj/store/gitlib/data:/var/opt/gitlab gitlab/gitlab-ce

This is my docker version:

Client:
  Version:           18.06.1-ce
  API version:       1.38
  Go version:        go1.10.3
  Git commit:        e68fc7a
 Built:             Tue Aug 21 17:21:31 2018
 OS/Arch:           darwin/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:29:02 2018
  OS/Arch:          linux/amd64
  Experimental:     true

TCP connections:

FIN_WAIT_2 172
SYN_SENT 1
CLOSE_WAIT 168
ESTABLISHED 158

I haven’t solved this problem for several days. Which big god knows how to solve this problem?

Hello @xyjwsj, welcome to forum.

When you are creating or starting the container, a message like this appears in the log?

ulimit: max user processes: cannot modify

No log like this…