Questions tagged [devcontainer]
65 questions
6
votes
1 answer
How can I bind mount to a vscode devcontainer without hard-coding it in devcontainer.json
In this question it is recommended that .devcontainer.json should be committed.
I agree, but for one problem. I need to bind mount a local directory into my devcontainer. That requires a local path that my colleagues won't have. The purpose is to…

thclark
- 4,784
- 3
- 39
- 65
4
votes
1 answer
VS Code: Use the list of multi-root workspace folders during dev container build
I have a ~/projects/ directory with a bunch of cloned Git repos in it. I like to select subsets of these and save them as VS Code multi-root workspaces as ~/projects/*.code-workspace.
I also use a dev container, configured with…

Ian Henckel
- 51
- 4
3
votes
0 answers
Prebuilding a docker image *within* a Github Codespace when the image relies on the organization's other private repositories?
I'm exploring how best to use Github Codespaces for my organization. Our dev environment consists of a Docker dev environment that we run on local machines. It relies on pulling other private repos we maintain via the local machine's ssh-agent. I'd…

David
- 31
- 1
2
votes
0 answers
GitHub CodeSpaces with JavaFX?
Introduction
Currently, I'm promgramming a project that use JavaFX, and I wanted to uses GitHub CodeSpaces with JavaFX, but I didn't found any documentation to do it.
Question
Somemone know if is possible to use GitHub CodeSpaces with JavaFX, if yes…

ThrowsError
- 1,169
- 1
- 11
- 43
2
votes
1 answer
How can I specify a devcontainer feature more than once?
I'm building a custom devcontainers file and need to add a couple of homebrew packages. In the features list, there's a homebrew-package that
does the job. The only problem is, this only accepts one package (there's a similar pipx-package feature…

MrSimonEmms
- 1,321
- 2
- 16
- 32
2
votes
0 answers
Work directory keeps switching ownership to root
I am trying to use the devcontainers feature of VS Code. However, ownership of the files in my work directory keep getting changed to root even though I set the permissions in the image. As a result I get "permission denied" errors whenever I try to…

thewayup
- 1,155
- 1
- 9
- 11
2
votes
0 answers
How to suppress notice when running VsCode Development Container postCreateCommand
I am using the postCreateCommand in a devcontainer.json and would like to suppress the notice that lists the command(s) being executed post container creation. When opening the development container using the devcontainer.json VsCode shows a notice…

pacrirl
- 21
- 1
2
votes
1 answer
What property to use for a prebuilt vscode devcontainer
I am currently build a VSCode devcontainer to share with my team.
The container is built on a Gitlab pipeline using devcontainer build and pushed on our private registry. Then in the repo we are pulling that container
My question is around the…

Florian Velcker
- 21
- 1
1
vote
1 answer
How to solve the problem with starting devcontainer?
I tried to run devcontainer. Set up files:
devcontainer.json
{
"name": "C++",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/git:1": {}
}
}
Dockerfile
FROM…

Boguslav
- 11
- 3
1
vote
1 answer
Identify multiple VSCode devcontainers in the same remote docker context
All my team members use the same server as docker remote context. I have set up a project using VSCode-Devcontainer with a devcontainer.json like this:
{
"name": "MyProject - DevContainer",
"dockerFile": "../Dockerfile",
"context":…

kielnino
- 160
- 1
- 7
1
vote
1 answer
Have anyone used multiple SSH keys with VSCode Dev Containers?
Context:
I use multiple accounts with the same host in my SSH config file, so I use aliases.
From Best way to use multiple SSH private keys on one client
From .ssh/config:
# Company account
Host company
HostName github.com
PreferredAuthentications…

Juan González
- 21
- 2
1
vote
1 answer
Can't install release version of 'ms-vscode.remote-explorer' extension because it has no release version
I'm trying to install the extension pack for devcontainer development called "Remote Development", ms-vscode-remote.vscode-remote-extension pack. I get the following message:
[Window Title]
Visual Studio Code
[Content]
Can't install release…

Burt_Harris
- 6,415
- 2
- 29
- 64
1
vote
0 answers
devcontainer.json for VScode using existing Container
How to use existing container in VSCode?
I have a file called .devcontainer.json. The path is /home/myname/Documents/ABC/.devcontainer.
{
"name": "Kaggle Dev CPU",
"image": "gcr.io/kaggle-images/python:v100",
"extensions": [
…

Ichsan
- 768
- 8
- 12
1
vote
1 answer
How to connect a Dev Container to another Container?
for this question im working with prisma's dev container: https://github.com/prisma/prisma/tree/main/.devcontainer
once i open that repo inside of a container using the remote container plugin in visual studio and run some Jest Tests that rely on…

Bandinopla
- 33
- 1
- 1
- 7
1
vote
1 answer
Set a dev container to open a terminal
Is it possible in the dev container specification to specify one or more terminals to be opened as part of the dev container?
My use case is that I'd like to open two terminals for the user:
Build and host the app.
Build and run the app API.
The…

Chris Talman
- 1,059
- 2
- 14
- 24