Problem running with docker-compose on Windows

I’m trying to run ghost docker image from docker-compose.

First of all, I cloned from the repository: GitHub - TryGhost/Ghost: Turn your audience into a business. Publishing, memberships, subscriptions and newsletters.

Then I created a docker-compose.yml file

version: '3'
    services:
        web:
            image: ghost:latest
            ports:
                - "3000:2368"
            volumes:
                - .:/var/lib/ghost/content

When I tried to run docker-compose up, it generated the following error in the console:
EBUSY: resource busy or locked, open '/var/lib/ghost/content/themes/casper/gulpfile.js' Error Code: EBUSY

When accessing the webpage at localhost:3000, it produced a 500 error. However, the admin at localhost:3000/ghost was still working as expected.

I think you’ll have better luck using this image of Ghost in Docker @CaoHoangTung:
https://hub.docker.com/_/ghost/

1 Like