vagnercardosoweb / docker-php8

Docker with php8.2+, apache, mysql, postgresql, phpmyadmin, redis, nginx and pgadmin
MIT License
114 stars 164 forks source link

No such file or directory't execute 'bash #8

Closed skjamil closed 3 months ago

skjamil commented 5 months ago

I am getting No such file or directory't execute 'bash while tried to run the PHP image.

vagnercardosoweb commented 5 months ago

@skjamil

Hello, which operating system and can you send more details?

skjamil commented 5 months ago

I have Windows 11 Pro installed. Docker version 24.0.6, build ed223bc. WSL version: 2.0.9.0

vagnercardosoweb commented 5 months ago

@skjamil can you send me a print of the logs at the time of the errors so I can debug? I don't have windows/linux.

skjamil commented 5 months ago

Sure. Screenshot 2024-01-31 225629 Screenshot 2024-01-31 225524

vagnercardosoweb commented 5 months ago

@skjamil

Hi, I haven't had time to test it on Windows/Linux yet, I only use MacOS, I'll test it as soon as possible.

It may be a path that is not recognized in Windows.

As soon as I can test it I'll let you know, if you've managed to adjust it let me know.

eduanayardo commented 5 months ago

Hi @skjamil, im add this line on php DockerFile RUN apk update && apk add bash after install composer and run this command on console docker-compose up --build --force-recreate --no-deps php

Sure. Screenshot 2024-01-31 225629 Screenshot 2024-01-31 225524

vagnercardosoweb commented 5 months ago

@eduanayardo and @skjamil

Thank you for the answer, I confess that I haven't had time to carry out a test on Windows yet, maybe I'll be able to do it at the weekend, but if it works, you can open a PR, thank you very much.

eduanayardo commented 5 months ago

Hi Vagner, let me do another test with this change and i make a PR

vagnercardosoweb commented 3 months ago

@eduanayardo @skjamil

Issue closed, if you want to talk about it again, feel free to open another one.