443 questions
Tooling
0
votes
2
replies
69
views
Cache Go dependencies in dev container
I'm trying to build a pre-built dev container (see here). Among others, the app has some Go dependencies specified in go.mod (link to file):
module github.com/jovandeginste/workout-tracker/v2
go 1.24....
Tooling
0
votes
0
replies
35
views
Reuse "node_modules" from pre-built dev container
I'm trying to build a pre-built dev container (see here).
Among others, the app uses some Node.js packages. To speed up the dev container performance, I'd like to cache them. For this, I'm running npm ...
19
votes
6
answers
28k
views
Share SSH keys with VS Code Devcontainer running with Docker's WSL2 backend
I'm reading these docs on sharing SSH keys with a dev container, but I can't get it to work.
My setup is as follows:
Windows 10 with Docker Desktop 4.2.0 using the WSL2 backend
A WSL2 distro running ...
0
votes
1
answer
35
views
VS Code Devcontainer modify line endings from LF to CRLF
I have a C++ Project (incl. some platform specific scripts) which I develop in VS Code.
The project contains a devcontainer for Linux which works well under Linux.
Development for Windows (without ...
-2
votes
0
answers
73
views
Deno development vscode workspace auto suggest import with package absolute path
I have workspace setup on deno. I have the following workspace
{
"workspace": [
"./repo-1",
"./repo-2",
"./repo-3",
"./repo-4",
...
0
votes
1
answer
46
views
VSCode DevContainer in linux doesn't recognize Docker, or the packages installed during build
I have a devcontainer set up as a work environment on Debian 13. Until recently, it was working perfectly fine, but recently I started getting error messages like this:
Once I was already inside the ...
8
votes
4
answers
3k
views
Why might VSCode think devcontainer configuration files were changed every time I open the devcontainer?
I'm using VSCode with the devcontainers feature. I recently made a large update to my devcontainer configuration, moving the devcontainer from a single DockerFile to docker-compose.yaml. Everything's ...
4
votes
1
answer
986
views
VS Code devcontainer some extensions not installed
I started using Devcontainer in VS Code, I use a UBI9 base image. I wanted to have my extensions in the Devcontainer so I listed them in devcontainer.json. As host system I use Rocky Linux 9 and ...
0
votes
0
answers
63
views
How to view the Docker log in GitHub Codespaces?
I cannot find a way to view the Docker log output for a Devcontainer that is launched in GitHub Codespaces.
I found the Terminal, but that is a terminal inside the container.
I found the DebugConsole, ...
4
votes
1
answer
1k
views
Is it possible to build mobile apps using VSCode Dev Containers / GitHub Codespaces?
My assumption is no, due to the need for device connectivity or running emulators which exceeds the capabilities of Dev Containers and containers in general that seem to rely on opening ports to ...
0
votes
0
answers
77
views
Next.js with VS Code dev container
I would like to use VS Code dev container for developing Next.js application.
Therefore I do these steps in VS Code:
New Dev Container,
After creating container I move out .devcontainer and .github ...
7
votes
1
answer
1k
views
how to reference environment variable from devcontainer when vscode connected to remote machine via ssh
When I'm running a devcontainer in vscode on my local machine, propagation of environment variables from host works as described in docs using localEnv syntax in devcontainer.json:
{
...
"...
5
votes
2
answers
2k
views
How to use SSH credentials and GPG for dev container in vscode?
I am using VScode on macOS and are exploring dev containers to use for development to encapsulate all dependencies required to build my Go project. I created a dev container from my existing local Git ...
0
votes
2
answers
920
views
fix docker file in vscode devcontainer after a bad change
I am learning how to work with Docker and VSCode Devcontainers on WSL2, and had a working docker file. Now I've made a change, and it refuses to rebuild the container. How can I find the docker file ...
0
votes
2
answers
184
views
The Ruby LSP VS Code extension isn't picking up env vars in my launch config that override compose.yml. Why, and what can I do?
I've set up a devcontainer in a Visual Studio Code Ruby project, and the launch configurations don't seem to be able to override environment variables from the devcontainer. I set up the devcontainer ...