-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sail up -d creates new docker container instead of using correct one #690
Comments
What exact commands are you running to reproduce this? |
I'm experiencing the same issue exactly like described The new instance of the docker containers are created when I run |
How are you stopping the project? Is this on a fresh project with unmodified docker-compose? |
Hey! It is a fresh project. Ive tried to make multiple of the projects, it always happens. Only thing that I use is the sail up -d command |
Thank you for reporting this issue! As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub. If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team. Thank you! |
Does WSL show a different folder name each time you start WSL? Maybe there is a way to set the container name via an |
The thing is that it did work at the first time. I've called my project testapp and even in wsl was testapp shown as well as in my docker. Another thing is that sometimes it works and sometimes it just creates a completely new container with random name as you can see on the screenshots. It is really strange. |
So the problem itself does not lie with Sail but with Docker / WSL: You can attempt a PR where the project-name is defined in Why WSL sometimes mounts another random folder name instead of the correct name is not clear to me. Maybe try a bug report in WSL: https://github.com/microsoft/WSL |
Thanks @Jubeki |
Sail Version
1.29.1
Laravel Version
11.0.0
PHP Version
8.3.6
Operating System
Windows (WSL)
OS Version
23H2
Description
Hey I'm experiencing this issue whenever I run
sail up -d
I notice it creates a new docker container instead of using the previous already made one. This is occurring on a freshly installed Laravel application.I followed the Sail documentation for windows
Steps To Reproduce
follow the documentation
Then:
The text was updated successfully, but these errors were encountered: