Description
Sail Version
1.25.0
Laravel Version
10.27.0
PHP Version
8.2.14
Operating System
Windows (WSL)
OS Version
Ubuntu 22.04.3 (5.15.133.1-microsoft-standard-WSL2)
Description
Since docker version 4.26 the build
and image
definition are in conflict. With the new docker version, docker will overwrite the docker image of image
. The docs for docker compose are not really clear here, what docker will do. This behavior is also with the new docker version 4.26.1. So maybe this is intented.
If you start the container, docker compose will print out the correct name for the container. But if you look in docker desktop, there is no container with this tag and the container in the image definition is in use.
The following part is the problem:
services:
app:
build:
context: ./vendor/laravel/sail/runtimes/8.2
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
image: sail-8.2/app
If you remove the image definition, the problem is gone. And the image is correctly tagged after the build.
Is there are reason why this image definition is present with the build definition? I don't see any reason why, because the there is a build definition. So the image should never be used?
Steps To Reproduce
I testet this with laravel 8, 9 and 10 with different versions of sail on windows (wsl).