Astro dev server is already running on when using docker
triage: failed
### Astro Info
```block
Astro v7.2.3
Vite v8.2.1
Node v26.7.0
System Linux (x64)
Package Manager npm
Output static
Adapter none
Integrations none
```
### If this issue only occurs in one browser, which browser is a problem?
_No response_
### Describe the Bug
The astro dev server refuses to start after being closed.
The bug fix at https://github.com/withastro/astro/issues/17656 doesn't seem to be working.
Still receiving the same error as below.
```bash
Attaching to app-1
app-1 |
app-1 | > astro-docker-bug-mre@0.0.1 dev
app-1 | > astro dev --host
app-1 |
app-1 | Another astro dev server is already running.
app-1 |
app-1 | URL: http://localhost:4321
app-1 | PID: 19
app-1 |
app-1 | Run `astro dev stop` to stop it, or use `astro dev --force` to replace it.
app-1 | Location:
app-1 | /usr/src/app/node_modules/astro/dist/cli/dev/index.js:157:13
app-1 | Stack trace:
app-1 | at dev (file:///usr/src/app/node_modules/astro/dist/cli/dev/index.js:157:13)
app-1 | at async cli (file:///usr/src/app/node_modules/astro/dist/cli/index.js:220:5)
app-1 exited with code 1
```
### What's the expected result?
The server just starts displaying the ip and port it's running on.
### Link to Minimal Reproducible Example
https://github.com/RashiqAzhan/astro-docker-bug-mre
### Participation
- [ ] I am willing to submit a pull request for this issue.
3 条评论