-
Notifications
You must be signed in to change notification settings - Fork 859
Closed
Labels
Milestone
Description
The container does not start if the docker group does not have the expected group id. This is what I did:
sudo docker run -it --name nextcloud-aio-mastercontainer --restart always -p 80:80 -p 8080:8080 -p 8443:8443 --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config --volume /var/run/docker.sock:/var/run/docker.sock:ro nextcloud/all-in-one:latest
Unable to find image 'nextcloud/all-in-one:latest' locally
latest: Pulling from nextcloud/all-in-one
eff15d958d66: Pull complete
933427dc39f7: Pull complete
35bb08dc7ee2: Pull complete
58a3f26800d7: Pull complete
bba5c0e912ac: Pull complete
62e5c0d120c5: Pull complete
410a26230a3b: Pull complete
cfd99187016c: Pull complete
c32ab7d5171e: Pull complete
0d32eb2980c3: Pull complete
991f816a61cc: Pull complete
c8667ca62702: Pull complete
6405e507a13e: Pull complete
108fd50a39c4: Pull complete
a4802c6a0ae4: Pull complete
4f4fb700ef54: Pull complete
ed2a8c5d896a: Pull complete
918f8b879784: Pull complete
ef811a9a19da: Pull complete
5957cd578fac: Pull complete
16271f6bc746: Pull complete
1fad265ca45b: Pull complete
d3cff4a42d6b: Pull complete
ed82917488d5: Pull complete
e306f9b356b0: Pull complete
71afc1271985: Pull complete
0ec4a207d9fd: Pull complete
891138b323b3: Pull complete
9ba4b052261a: Pull complete
df2f9d124a4f: Pull complete
48b90860d7f8: Pull complete
2ae887bcd224: Pull complete
2283bd5bb2d5: Pull complete
Digest: sha256:9a47ed4b666f74027d710490ae1fac5a078275d2516ce8e671046cb2337fb88b
Status: Downloaded newer image for nextcloud/all-in-one:latest
Docker socket is not readable by the www-data user. Cannot continue.
After checking out the source code I found that the docker group id is explicitly specified in the Dockerfile. This id has to match the docker group id of the host system otherwise we can't control the docker from with the container.
I was able to resolve the issue on my system by changing the id of my docker group with: sudo groupmod -g 998 docker
but it probably should be fixed in the image.