Home > Mobile >  Docker error failed to create shim: OCI runtime create failed: container_linux.go:380:
Docker error failed to create shim: OCI runtime create failed: container_linux.go:380:

Time:09-23

ERROR: for app_web

Cannot start service app_web: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:75: mounting "/host_mnt/Users/akanwar/Documents/c/cbax-config" to rootfs at "/cbax-apply-platform/node_modules/@c/cbax-config" caused: mkdir /var/lib/docker/overlay2/a3bccebb167966c795860d95a5a758f244ae5da780f962333f0d51d2d8b2def7/merged/cbax-apply-platform/node_modules/@c/cbax-config: operation not permitted: unknown

STEPS TAKEN TO RESOLVE

  1. deleted the docker data ran everything.
  2. From Docker widget Clean / Purge data
  3. From Docker widget reset to factory settings
  4. docker system prune --all
  5. https://github.com/docker/for-mac/issues/1396 I followed this link as well and tried the solutions mentioned in it , but still none of it worked for me.

None of the solutions worked for me

CodePudding user response:

You need to remove this from all services:

      - ${CBAX_PATH}/cbax-apply-platform:/cbax-apply-platform:rw

You cannot mount a folder and then also sub-folders. This is wrong:

      - ${CBAX_PATH}/cbax-apply-platform:/cbax-apply-platform:rw
      - ${CBAX_PATH}/cbax-application-pages:/cbax-apply-platform/app/assets/components/cbax-application-pages:rw

Also you mount a lot of host folders in multiple service with read-write access. I think that makes a mess of your files on the host if all services start modifying files. It's better to mount them read-only.

CodePudding user response:

Filesystems inside a Docker container work just like filesytems outside a Docker container: you need appropriate permissions if you are going to create files or directories. In this case, you're trying to create /newfolder as a non-root user.

Try giving permission to

var/lib/docker
  • Related