---
title: "Comment by Niall on \"🐳 Docker with Strapi V4 🌟\" | Hashnode"
description: "Hi, thanks for the tutorial, it has helped me understand quite a bit. I have tried this on an Ubuntu machine using Yarn, and it works straight away without issu"
url: "https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/62c6e5ee39e2d97f4eaacc28"
---

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

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

[Niall](https://hashnode.com/@classicniall)

[Jul 7, 2022](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/62c6e5ee39e2d97f4eaacc28)

Hi, thanks for the tutorial, it has helped me understand quite a bit.

I have tried this on an Ubuntu machine using Yarn, and it works straight away without issue. I then commited those changes to a repo and then clone it on to a Windows machine with NPM and Docker Desktop.

Everything seems to build just fine, I can see the images and the container with both "web" and DB. However, the web image is stuck in a restart loop due to some error of connecting to the DB (like it's the wrong credentials/permissions).

Any idea?

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

[Jul 7, 2022](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/62c6e5ee39e2d97f4eaacc28#reply-62c6e69939e2d97f4eaacc48)

Well only idea i can think of is that if you are using sqlite, permissions in windows and linux are different. BUT if it's built on each machine it should work fine tbh,

Seems to be maybe an issue with the setup or what you are connecting to rather then docker or your machine.

[Niall](https://hashnode.com/@classicniall)

[Jul 7, 2022](https://hashnode.com/posts/docker-with-strapi-v4/61dcb820cda0d0294b69c3cd/comment/62c6e5ee39e2d97f4eaacc28#reply-62c6ea64353b847f29e88fae)

[Simen Daehlin](https://hashnode.com/@eventyret) I switched it to MySQL (copying the guide), but I'm thinking that "platform" may be an issue (it's the only thing I can think of since it says "linux").

Could it be because I didn't run the initial strapi setup? I'd just assume that since all the files were created and committed, nothing else was needed. The only thing I had to re-create was the .env file.

So, an update. Docker Compose doesn't work. I've just booted up the Ubuntu machine, ran docker-compose up -d and I'm getting "server wasn't able to start properly" message, "error: knex: run".

This is a different error than on Windows, and I know Docker Desktop works, as I've been able to quickly spin up a WordPress site.

Funnily enough, the quickstart worked fine.
