Plone Intranet Quick Start (a) Docker-based OS setup

Following the instructions at https://docs.ploneintranet.org/installation/system-setup.html, I cannot run the docker container after building it under "appadmin" user with the command:

 docker build -t gaia .

when I issue this command:

docker run -i -t \
--net=host \
-e LC_ALL=en_US.UTF-8 \
-e LANG=en_US.UTF-8 \
-v /home/appadmin:/app -w /app -u app gaia

and it hits this error:

docker: Error response from daemon: linux spec user: unable to find user app: no matching entries in passwd file.

There is no "app" user inside /etc/passwd file when I enter into the container in a simpler way:

docker run -it gaia

What could have gone wrong with the docker build or run? Does it require a specific docker version to build the container (mine is 18.06.1-ce)?

There's a similar issue here (the thread looks useful): https://github.com/moby/moby/issues/22323

Thanks David! Your quoted thread does help me out of the blue. I have replaced the docker run option "-u app" to "-u 0" (uid can be any number, but invalid number will have no associated user) or "-u root". Now the container can be started with no error:

docker run -i -t
--net=host
-e LC_ALL=en_US.UTF-8
-e LANG=en_US.UTF-8
-v /home/appadmin:/app -w /app -u root gaia

So, "app" user never exists inside the container, I just wonder whether this is it or the docker build process runs into trouble creating "app" user.

Definitely boils down to a missing "app" user. The specifics of why that is would require more digging.

I think I nail the problem. The misleading Dockerfile link https://github.com/quaive/ploneintranet-docker-base/blob/master/Dockerfile (see attached image) at the page https://docs.ploneintranet.org/installation/system-setup.html leads one to the Ubuntu 16.04 based development install package, instead of the Ubuntu 14.04 based quick start deployment package.

The proper Dockerfile seems to be the one inside ploneintranet-deploy folder after issuing the command as instructed at https://docs.ploneintranet.org/installation/quickstart.html:

git clone https://github.com/ploneintranet/ploneintranet-deploy.git

I am not totally sure about that and currently stuck in my YMMV moments to get the hang of it !!!

Plone Foundation Code of Conduct