vscode-dev-containers
vscode-dev-containers copied to clipboard
"command not found" in lifecycle script when Firefox is installed in the Ubuntu image
I am using the Ubuntu image on Jammy (22.04). When I install the firefox package using apt-get in the Dockerfile, Node.js, which is installed using the features script defined in devcontainer.json, cannot be used from the postCreateCommand lifecycle script.
Note that:
- This only happens when I install
firefoxin theDockerfile. Installing other packages works fine! - The error doesn't occur on 20.04
One thing that might be related... starting from Ubuntu 22.04, firefox is a Snap package.
System information
- VSCode Version: 1.69.2
- Local OS Version: Windows_NT x64 10.0.19043
- Local chip architecture: x86_64
- Reproduces in: Remote - Containers
- Name of Dev Container Definition with Issue: Ubuntu
Steps to Reproduce
- Clone https://github.com/nasso/dev-container-jammy-with-node in a container volume
- See the error when the
postCreateCommandtries to runnode -v
The steps to reproduce also lead to this bug on my computer.
- VSCode Version: 1.69.2
- Local OS Version: Ubuntu 22.04 LTS
- Local chip architecture: x86_64
- Reproduces in: Remote - Containers
- Name of Dev Container Definition with Issue: Ubuntu

Interesting, seems i'm hitting this too (testing in Codespaces) with your example repo. Will dig it a bit more!
The path does indeed look different when including/removing firefox 🤔