---
title: "Comment by alon borin on \"🐳 Docker with Strapi V4 🌟\" | Hashnode"
description: "Thanks for the guide. After running docker-compose up -d I get the following error: ERROR: for postgresDB Cannot start service postgresDB: failed to create shim"
url: "https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/626681bad82f4558aff8cba6"
---

[Discussion](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd)

Comment [🐳 Docker with Strapi V4 🌟](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd)

[alon borin](https://hashnode.com/@Balon)

[Apr 25, 2022](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/626681bad82f4558aff8cba6)

Thanks for the guide. After running docker-compose up -d I get the following error:

ERROR: for postgresDB Cannot start service postgresDB: 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:76: mounting "/data/myproject/data" to rootfs at "/var/lib/postgresql/data" caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

```
ERROR: for postgresDB  Cannot start service postgresDB: 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:76: mounting "/data/myproject/data" to rootfs at "/var/lib/postgresql/data" caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
```

did anyone get anything similar and solved this?

[Simen Daehlin](https://hashnode.com/@eventyret)

[Apr 25, 2022](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/626681bad82f4558aff8cba6#reply-6266823b5dd5677e9b8e07bc)

Did you mount it or does the `data` folder exist you are trying to bind mount it to ?

[alon borin](https://hashnode.com/@Balon)

[Apr 25, 2022](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/626681bad82f4558aff8cba6#reply-626682e35dd5677e9b8e07ef)

[Simen Daehlin](https://hashnode.com/@eventyret) Can you please clarify? I didn't understand the question

[Simen Daehlin](https://hashnode.com/@eventyret)

[May 3, 2022](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/626681bad82f4558aff8cba6#reply-6270faa89ed78401a64093fb)

Sorry for a lte reply [alon borin](https://hashnode.com/@Balon) Did you create the folder "data" it looks to me like you are trying to mount `/data/myproject/data` so this means the `data` folder needs to exist and be empty.
