### Bug description

This might be better directed to @rocker-org, but I'll start here! I've endeavoured to [set up a VSCode devcontainer](https://github.com/360-info/quarto-scaffold/tree/test-container) for our Quarto projects based on the R community devcontainer template (which in turn uses the `rocker/r-ver:4.2` Docker image). Quarto is included in the image, but attempts to render a [test case](https://github.com/360-info/quarto-scaffold/blob/test-container/index.qmd) lead to a Pandoc error:

![image](https://user-images.githubusercontent.com/6520659/193717544-1e8bb846-2d5a-4e4d-be7f-6a1153ef8f79.png)

```
$ quarto render index.qmd

Killed
Error in strsplit(info, "\n")[[1]] : subscript out of bounds
Calls: .main ... pandoc_available -> find_pandoc -> lapply -> FUN -> get_pandoc_version
In addition: Warning message:
In system(paste(shQuote(path), "--version"), intern = TRUE) :
  running command ''/usr/local/bin/pandoc' --version' had status 137
Execution halted
```

Even just running `pandoc --version`, using the version of Pandoc that Quarto appears to be calling, fails:

```
$ pandoc --version

Killed
```

I should say that the test case renders fine with my own local Quarto installation!

### 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.
- [X] 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.
2022-10-04T01:56:22Z
jimjam-slam
bug
v1.3
closed
Pandoc memory issue in amd64 docker container emulated on M1 Mac
https://github.com/quarto-dev/quarto-cli/issues/2716