Questions tagged [vscode-devcontainer]

298 questions
12
votes
2 answers

Where did the VScode rebuild container command go?

The recent update on VScode made this option disappear. How do I rebuild the container when running the dev container?
Alexander
  • 339
  • 3
  • 13
12
votes
3 answers

Command failed docker-compose in VScode Devcontainer

I've just started using Docker on an already existing project (it runs into a Docker container). I don't have a lot of Docker background - I've been using it only from the GUI, by pressing the "play" button. Now I have a project which runs into a…
12
votes
1 answer

Configuring environment variables prior to creation of dev container

I am trying to integrate the Remote - Containers with my docker-compose.yaml. However, my compose file is making use of the variable substitution feature. services: command: yarn server environment: MONGO_URI:…
11
votes
2 answers

GitHub Codespaces: how to set x86_64, AMD64, ARM64 platform?

First, the question: is there a way to choose the platform (e.g. x86_64, AMD64, ARM64) for a GitHub Codespace? Here's what I've found so far: Attempt 1 (not working): From within GitHub.com, you can choose the "machine" for a Codespace, but the only…
10
votes
0 answers

How to transition VSCode devcontainers to a production environment?

I'm a bit of a newb so bear with me. I'm familiar with writing local applications and scripts to automate admin tasks that I need to do, but now I'm trying to get familiar with the Gitlab CI/CD process. I have been using (and loving) VSCode…
Wade Tracy
  • 163
  • 1
  • 5
8
votes
1 answer

How to use vs code dev container with existing docker-compose file?

I cannot seem to find a clear answer for this, I found https://stackoverflow.com/a/68864132/17183293 but it is not very clear and also might be outdated because "dockerComposeFile" is no longer a valid option. I have a project with an existing…
8
votes
0 answers

How to properly use custom image in VSCode remote containers

I'm currently working on a project which requires me to use a VSCode Remote Container. I have decided not to base my container on one of the official Microsoft images available here instead it is based on the epitechcontent/epitest-docker docker…
Diego ROJAS
  • 509
  • 1
  • 7
  • 14
7
votes
2 answers

Why automatic port forwarding? How to prevent VS Code from doing it?

My setup is VS Code with a dev container. When I start an application that produces output that looks like a URL, VS Code will extract the port number and automatically forward that port. This process is described in some detail here. My question is…
Manfred
  • 5,320
  • 3
  • 35
  • 29
7
votes
0 answers

Configure devcontainer to run electron app?

Problem Everytime I execute my project in the terminal with the command npm start I got the following error message: >ProjectName@1.0.0 start /workspaces/ProjectName >electron . /workspaces/ProjectName/node_modules/electron/dist/electron: error…
7
votes
2 answers

vscode dev container environment variables not exposing to docker-compose

My docker-compose.yml looks like this version: "3.8" services: vscode: volumes: - ..:/workspace:cached - $SSH_AUTH_SOCK:/ssh-agent - /var/run/docker.sock:/var/run/docker.sock environment: -…
6
votes
1 answer

Git isn't detected inside dev container in visual studio code

Git is not detected when I open dev container in VisualStudio Code even when I cloned the file from GitHub using SSH key. Docker Desktop is working fine, also Everything is working fine as I can perform build, clean and test. I cannot commit changes…
Devid Karki
  • 61
  • 1
  • 2
5
votes
1 answer

What's the difference between Docker Compose and Dev Containers?

In the Dev Containers's document it said The Visual Studio Code Dev Containers extension lets you use a container as a full-featured development environment. In my understanding, it creates a container that contain all required resourses/library to…
manh.vu
  • 335
  • 1
  • 4
  • 14
5
votes
5 answers

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 Ubuntu 20.04 In WSL2, I have ssh-agent running…
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
5
votes
3 answers

How to deal with more than one `network_mode` in a VSCode Remote dev container?

I would like to have an application, database and redis service running in a dev container where I'd be able to access my database and redis inside the container, application and on Windows, this is what currently works just as I wanted for my…
user16985789
5
votes
1 answer

Live relod not working in vscode Development Container for angular

I have been working on a mock application in angular using the VScode Development Container. For that I created a docker and created the devcontainer.json using the Add Development container configuration file option. Everything was working…
leox
  • 1,315
  • 17
  • 26
1
2 3
19 20