faro-web-sdk icon indicating copy to clipboard operation
faro-web-sdk copied to clipboard

Volumes mount error while running docker-compose with the demo profile

Open soulbreak opened this issue 1 year ago • 0 comments

Description

Hello community, when running the docker compose command, the only demo container failed to start. It is curious because others containers also contains volume mount and does not have this issue. I saw the permission denied, but I'm unable to solve it. It tried to modify the end of the Dockerfile with this block, but the error remains:

# Start the demo
RUN chmod 777 -R ${DEMO_WORKSPACE_PATH}
CMD ["yarn", "start"]

Any help is really appreciated. Thank you.

Steps to reproduce

When running the docker compose command: docker compose --profile demo up -d

Expected behavior

All containers should start successfully.

Actual behavior

I have the following error:

 ⠿ Container faro-web-sdk-database-1  Started                                                                                                                                                                                                                            23.4s
 ⠿ Container faro-web-sdk-cortex-1    Started                                                                                                                                                                                                                            22.3s
 ⠿ Container faro-web-sdk-loki-1      Started                                                                                                                                                                                                                            24.4s
 ⠿ Container faro-web-sdk-tempo-1     Started                                                                                                                                                                                                                            25.4s
 ⠿ Container faro-web-sdk-grafana-1   Started                                                                                                                                                                                                                            26.4s
 ⠿ Container faro-web-sdk-agent-1     Started                                                                                                                                                                                                                            16.5s
 ⠿ Container faro-web-sdk-demo-1      Starting                                                                                                                                                                                                                            6.5s
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/var/lib/docker/volumes/faro-web-sdk_demo_demo_dist/_data" to rootfs at "/usr/app/demo/dist": mkdir /var/lib/docker/overlay2/436fcee13e1efdc1b5777f2b3632891750d4cc9e02897c82e019d2616bbcbc6f/merged/usr/app/demo/dist: permission denied: unknown

Environment

  • Docker version: Docker version 20.10.24, build 297e128
  • Latest clone of grafana faro

soulbreak avatar Nov 28 '23 15:11 soulbreak