Why is cloud9 taking so long to start?

I’ve run cloud9 before, but this time it’s taking 5 minutes or so to start.

This is my docker-compose

cloud9:
image: lscr.io/linuxserver/cloud9
container_name: cloud9
environment:
- PUID=$PUID
- PGID=$PGID
- TZ=Europe/London
- GITURL=https://github.com/linuxserver/docker-cloud9.git #optional
- USERNAME=${CLOUD9_USER}
- PASSWORD=${CLOUD9_PASSWORD}
volumes:
- $HOME:/code #optional
- /var/run/docker.sock:/var/run/docker.sock #optional
ports:
- 8000:8000
restart: unless-stopped

Logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] 01-envfile: executing... ,
[cont-init.d] 01-envfile: exited 0.,
[cont-init.d] 10-adduser: executing... ,
,
-------------------------------------,
          _         (),
         | |  ___   _    __,
         | | / __| | |  /  \ ,
         | | \__ \ | | | () |,
         |_| |___/ |_|  \__/,
,
,
Brought to you by linuxserver.io,
-------------------------------------,
,
To support LSIO projects visit:,
https://www.linuxserver.io/donate/,
-------------------------------------,
GID/UID,
-------------------------------------,
,
User uid:    1000,
User gid:    1000,
-------------------------------------,
,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 30-config: executing... ,
[cont-init.d] Setting permissions this may take some time

It could be the overlayfs bug where changing permissions the first time inside the container can take a while. It randomly hits some devices and we have been unable to pin it to any specific combinations.

It only affects newly created containers. Subsequent restarts should be quick. Is that the case for you?