Hi.Events icon indicating copy to clipboard operation
Hi.Events copied to clipboard

🐛Docker Compose Error in Windows

Open AliRaza-commits opened this issue 1 year ago • 5 comments

Bug: I get error when running docker in windows.

Steps to reproduce the behavior: 1- git clone https://github.com/HiEventsDev/Hi.Events.git 2. cd docker/all-in-one folder 3. docker compose up -d

Expected behavior Should have successfully started project

Screenshots error-docker

Desktop (please complete the following information):

  • Windows 11

Hi.Events Version and platform hieventsdev/hi.events (version) : 0.0.1

Logs => ERROR [all-in-one stage-2 3/6] COPY ./docker/all-in-one/supervisor/supervisord.conf /etc/supervisord.conf 0.0s => ERROR [all-in-one stage-2 2/6] COPY ./docker/all-in-one/nginx/nginx.conf /etc/nginx/nginx.conf 0.0s => ERROR [all-in-one stage-2 4/6] COPY ./docker/all-in-one/scripts/startup.sh /startup.sh

It seems there is issue in copying above three files. I updated docker-compose.yml file

context: ./../../

to:

context: c:/xampp/htdocs/HiEvents

For debugging purpose, I changed Dockerfile.all-in-one file to understand folder listing:

COPY . /context/

I noticed all folders that appeared were actually from xampp folders using previous context. But after updating context, I could see all folders started to appear from HiEvents. But when I use:

COPY ./docker /context/

No folder appear now and if I further add all-in-one to above statement. I get error again.

It seems I couldn't copy docker folder even though it appear when I use "." with copy statement. Any help will be greatly appreciated as I invested heavy time to debug this issue.

AliRaza-commits avatar Aug 12 '24 09:08 AliRaza-commits

Hi @AliRaza-commits, did you figure this out? Unfortunately I don't have access to a Windows system, so debugging is difficult.

daveearley avatar Aug 17 '24 15:08 daveearley

Unfortunately I couldn't figure this out. I don't have much docker experience. Any help will be greatly appreciated

AliRaza-commits avatar Aug 17 '24 15:08 AliRaza-commits

Will try to check this

tasnim0tantawi avatar Aug 26 '24 07:08 tasnim0tantawi

Hey @AliRaza-commits try run with --no-cache or --force-recreate like this:

docker compose up -d --no-cache --force-recreate

renatoruis avatar Aug 28 '24 17:08 renatoruis

Hey @AliRaza-commits try run with --no-cache or --force-recreate like this:

docker compose up -d --no-cache --force-recreate

No its not working in windows @renatoruis . Did you run in windows?

AliRaza-commits avatar Aug 29 '24 11:08 AliRaza-commits