Questions tagged [devcontainer]

65 questions
0
votes
0 answers

Connection error on GRPC devcontainers ran manually vs ran with VSCode

Context I work on a project split up in two, each subproject consist of a GRPC client/server and the two are meant to talk to each other from their own containers. I have been running the project(s) with VS Code devcontainer extension succesfully…
Nick Skywalker
  • 1,027
  • 2
  • 10
  • 26
0
votes
0 answers

Github Apache codespace cant find the requested path when forward port

I'm new to devcontainer and I can't figure out why my apache would forward to port 8000. I tried everything, but it can either not find the requested path, or I dont have permission. Which I tried add the user to www-data. Nothing…
0
votes
0 answers

VSCode devcontainer: proxy: unknown scheme: http

i have some troubles starting devcontainers in VSCode. My setup: macOS (Monterey 12.6.2) docker-ce on local VM (DOCKER_HOST: ssh://vagrant@127.0.0.1:2222) corporate proxy configured via http_proxy & https_proxy & no_proxy env variables (also the…
0
votes
0 answers

VS Code multi-container dev containers git index keeps refreshing

I'm using a multi-container VS Code dev environment exactly as recommended in the docs. My different service environments successfully run using the Dev Containers: Open Folder in Container... as suggested. Inside the VS Code terminal (in the Docker…
0
votes
0 answers

How to test single scenario from devcontainer feature?

I'm exploring devcontainer by contributing to the fish feature and adding an option to provide a list of fisher plugin to install. Using the following command, run all tests and scenario tests. But that can took some time. devcontainer features test…
Édouard Lopez
  • 40,270
  • 28
  • 126
  • 178
0
votes
0 answers

Fail to download maven in Devcontainer

I'm currently working on a spring boot app which communicates with PostgresSQL. Everything is running in a Devcontainer on Docker. Until now, the problem I had was that I was behind a corporate proxy and Docker couldn't download images. To solve…
0
votes
1 answer

VSCode: Can I have different theme when window is open in Dev container

I have a folder in vscode, that I develop through my host but also through connecting to a Docker container. In order to easily differentiate the two windows I would like to have different theme for the window without connection to the docker…
0
votes
0 answers

Update env var in Visual Studio 2022 devcontainer

I want to pass some environment variables from my local environment to a development container. I've found three ways to set environment variables in the dev container: containerEnv remoteEnv runArgs My devcontainer.json looks like this: { …
0
votes
2 answers

Set Host IP as Docker Environment Variable

Problem: I have a mid-sized team of student developers working on a wide variety of devices. We're using expo-go to live-preview our development progress on our mobile phones. We need to update the REACT_NATIVE_PACKAGER_HOSTNAME environment variable…
Heros451
  • 1
  • 2
0
votes
1 answer

vscode devcontainer no longer builds: rpc error: code = unknown desc = target stage dev_containers_target_stage could not be found

I've been working in a devcontainer doing C++ development, I rebuilt the container and it failed to build. I've since tried another container and it also won't build. I know the devcontainer files and dockerfile are unchanged from when this…
0
votes
0 answers

workspaces folder is being mounted as read only on vscode devcontainer

I am using devcontainer vscode extension to run my development environment under windows using WSL. For some reason, this works great on my MacOS, but on my Windows machine (under WSL) using the same .devcontainer file, the /workspaces folder (which…
gkpln3
  • 1,317
  • 10
  • 24
0
votes
1 answer

Using GitHub Codespaces secrets in devcontainer.json

Problem Some library I use requires the case sensitive environment variable QXToken. When I create a codespaces secret the environment variable is only available in uppercase (QXTOKEN), as the secrets are case insensitive. Therefore I want to copy…
0
votes
1 answer

Connecting to git remote from Laravel devcontainer on VSC on windows

I'm using a devcontainer in Visaul Studio Code on Windows. I built this devcontainer with the laravel sail helper. It runs on Docker desktop and WSL2. This is the devcontainer json: // https://aka.ms/devcontainer.json { "name": "Existing Docker…
Valentino
  • 465
  • 6
  • 17
0
votes
1 answer

Clone repo inside docker volume with devcontainer, re-open it and access it's ip

First trouble is how to re-open a cloned repo inside a volume with Remote container's option: "Clone repository in named container volume" It creates the volume inside a container, i can use it exacly how i wanted inside it, but if i close this…
0
votes
0 answers

VS Code Remote Containers Clone Repo doesnt work but works locally

I've set up a devcontainer enviroment for my nodejs/mongo project. It uses a compose file to setup the services. When I clone my repo locally then choose "Remote Containers: Rebuild and reopen in Container" it runs without any errors. I then…