### Bug description

I tried the latest quarto cli and it opened the wrong port (6582).
The correct port seems to be the one shown on the command line (3512).
(Note that the command was executed on the terminal in the VSCode Dev Containers.)

![image](https://user-images.githubusercontent.com/50911393/193285964-393554e0-4173-4f92-b520-28f6e7b4a47f.png)

```sh
$ quarto check

[✓] Checking Quarto installation......OK
      Version: 1.2.171
      Path: /opt/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.6
      Path: /usr/local/bin/python3
      Jupyter: 4.11.1
      Kernels: python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
```

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [ ] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
jjallaire
2022-09-30T14:03:23Z
eitsupi
bug
closed
Running the `quarto preview` command in a docusaurus project opens the wrong port (on VSCode)
https://github.com/quarto-dev/quarto-cli/issues/2684