Questions tagged [devcontainer]

65 questions
0
votes
0 answers

devcontainer.json not working. postCreateCommand not working

Nothing is executing after creating codespace https://github.com/chir263/exp-aes-iiith Please help resolving issue
0
votes
0 answers

python import fails in Visual Studio Code devcontainer but works in local docker container

I'm trying to develop a python script using a devcontainer. I can run the script in a local docker container but the import fails when running in the devcontainer. The devcontainer error appears to be a problem with _cffi_backend. I'm using python…
BruceCode
  • 21
  • 3
0
votes
1 answer

share git ssh credentials with devpod

I am using devpod to make environments reproducible. Nevertheless, when I try to commit code I am getting an error that git is not able to find my ssh keys, so I get a 403. Is it possible to share my git ssh keys with the devcontainer?
Kanekotic
  • 2,824
  • 3
  • 21
  • 35
0
votes
0 answers

Is there a Dev Container “Features” for rethinkdb?

I’ve been looking for a Dev Container “Features” for rethinkdb, since I tried GitHub’s dev containers for in-browser development. I haven’t found one and without, I have to install Rethinkdb every time. Has someone already made a dev container…
dotnetCarpenter
  • 10,019
  • 6
  • 32
  • 54
0
votes
1 answer

How can I prevent VSCode devcontainers from setting GIT_EDITOR

When using Visual Studio Code (vscode) devcontainers the extension automatically sets vscode as the git editor. It does this by setting the GIT_EDITOR env var. To prove it, I ran: docker run --rm mcr.microsoft.com/devcontainers/base:bookworm…
jamiet
  • 10,501
  • 14
  • 80
  • 159
0
votes
0 answers

vscode devcontainer and pgadmin in windows through WSL 2 > servers.json file mounted as folder

My intention is to build a .devcontainer with 3 services. One is a ASP.NET app, another one is PostgreSQL and finally another one with PGAdmin as I want to have access to the DB during development. My issues is that I can't bind to the servers.json…
0
votes
0 answers

Is it possible to install devcontainer features in production container builds?

I make a lot of use of OCI devcontainer features to quickly and easily install an up-to-date stack into devcontainers (more info in this blog post). But I want my production containers to be built with the same stack (minus the development-specific…
0
votes
0 answers

VS Code DevContainer workspace ownership and permission

I want to create a devcontainer for a non root user, I want to set /workspace uid:gid to USER_UID and USER_GID, but it seems impossible. I have created a dockerfile for a devcontainer image: FROM debian:testing-slim ARG USERNAME=myuser ARG…
0
votes
0 answers

Is it possible to choose default cmake preset configuration from the vscode devcontainer

I have two devcontainers defined for my c++ project, one for gcc and one for clang, each based on a different container source. The clang container is defined so // For format details, see https://aka.ms/devcontainer.json. For config options, see…
bradgonesurfing
  • 30,949
  • 17
  • 114
  • 217
0
votes
0 answers

How do I export code changes from DevContainer to the local directory?

I have a project consisting of a set of Docker Containers with one container running django, a second running NGINX, and a third running a postgres database running as a Dev Container. The project files live in Ubuntu via WSL2 in Windows 10…
Matt
  • 1
  • 1
0
votes
1 answer

Using simplest vscode devcontainers setup, cannot write files from inside container

I am using vscode devcontainers. My enviroment, setup, and execution is as follows: devcontainer@0.35.0,Docker version 23.0.4, build f480fb1,Docker Compose version v2.17.2,ubuntu 20 .devcontainer |- .devcontainer.json |- …
Craig Hicks
  • 2,199
  • 20
  • 35
0
votes
0 answers

Is there a command line way of attaching VS Code from local laptop to a Kubernetes Pod/Container?

Assuming that all Kubernetes RBAC permissions are granted, and a container is running in Kubernetes. I am trying to automate or have a simple startup script that will find the running container based on the Kubernetes deployment name + container…
Rohit Mistry
  • 113
  • 3
  • 11
0
votes
1 answer

Build docker container passing devcontainer.json config through terminal command (without Visual Studio)

I am almost new to all of this so please excuse my lack of knowledge. I work in Ubuntu with Visual Studio Code and Dev Containers extension to build a docker image of my repository and mount it in a remote container, and develope inside of it. I use…
0
votes
0 answers

can't run user commands during container setup

I have a devcontainer configuration like this: { "name": "App", "dockerComposeFile": "docker-compose.yml", "service": "app", "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", "features": { …
Luiz E.
  • 6,769
  • 10
  • 58
  • 98
0
votes
0 answers

Not able to update the devcontainer.json file if the VS Code dev container does not start after rebuild

I was trying to add Mongo Express dependency using docker compose file in my devcontainer.json file however as the port was busy , the dev container rebuild failed. Now the problem is VS Code is not able to open the dev container folder so that I…
Mistu4u
  • 5,132
  • 15
  • 53
  • 91