Questions tagged visual-studio-code

Explore the latest questions and answers asked by our top developers.

Docker dev environement POSTGRE access issue (react app)

I am trying to setup a dockerized react app using Docker dev environement on win10. The docker image version works fine, locally or hosted, but i want to modify some features hence the local version. The app is planka, a simple react kanban board https://github.com/plankanban/planka Here are the steps taken : create a new dev […]

Docker dev environement Postgres access issue (react app)

I am trying to setup a dockerized react app using Docker dev environment on win10. The docker image version works fine, locally or hosted, but i want to modify some features hence the local version. The app is planka, a simple react kanban board https://github.com/plankanban/planka Here are the steps taken : create a new dev […]

VS Code devcontainer – what is the difference between containerUser and USER in Dockerfile?

From the doc containerUser: Overrides the user for all operations run as inside the container. Defaults to either root or the last USER instruction in the related Dockerfile used to create the image. Does it mean that when you set up containerUser below "containerUser": "user-name" Just same as USER in Dockerfile below?? USER user-name Source: […]

How to do interactive rebase in a docker container in Visual Studio Code?

I would like to ask how to correctly solve this problem. I have Visual Studio Code set up with docker containers so I can edit, build and even debug my project that is in a git. I am using NodeJS/Typescript docker image mcr.microsoft.com/vscode/devcontainers/typescript-node. The problem is when I try to do interactive rebase in git […]

By Ji Lechner
Published
Categorised as docker, git, visual-studio-code Tagged , ,

VSCode and opening links to code from python tracebacks inside docker

Is there a way for VSCode to be smarter about ctrl-clicking python exceptions in the terminal? Consider the following: File "/MountedFolder/app/logical/module.py", line 447, in __process_mass_data if known_props.updated_at > found_props["updated_at"]: TypeError: ‘>’ not supported between instances of ‘datetime.datetime’ and ‘str’ This is a log from docker. If I ctrl-click on that path, VSCode tries to find […]

By I hate JS
Published
Categorised as docker, python, visual-studio-code Tagged , ,

VSCode remote-containers.attachTorunningContainerFromViewlet error

I’m using Remote-SSH to connect to a remote, and then Attach Visual Studio Code on the remote host gives me an error. [2022-01-12 16:59:07.497] [exthost] [error] Shell server terminated (code: 255, signal: null) enter code here ssh: Could not resolve hostname local-88-centos0-frp: No such host is known. remote-containers.attachToRunningContainerFromViewlet {"value":"ms-vscode-remote.remote-containers","_lower":"ms-vscode-remote.remote-containers"} Source: Docker Questions

By Jaxh Lee
Published
Categorised as containers, docker, visual-studio-code Tagged , ,

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 devcontainers because I fell into a hole of learning […]

How to use VSCode RemoteContainer with Minikube as Docker Daemon?

I wonder if anyone has been able to use VSCode Remote Containers with Docker/Minikube setup, because I can’t get it to work. I am trying to use VSCode Remote Container Extension and I am trying to follow the quick start guide: https://code.visualstudio.com/docs/remote/containers#_quick-start-try-a-development-container My setup is on current MacOS I have installed HyperKit, Minkube, Docker and […]

By DocMoebiuz
Published
Categorised as docker, visual-studio-code Tagged ,

Why does container stop when closing VSCode window although "shutdownAction" is set to "none"?

I use VSCode 1.63.2 to ssh into a remote machine with Ubuntu 20.04, to then work on a project inside a Docker container. Whenever I close a VSCode window while executing a Python script in the container, it stops all terminal processes. When I reattach to the container, I see a Python terminal showing Session […]

By fabioklr
Published
Categorised as docker, python, visual-studio-code Tagged , ,

go delve remote debugging does not work with docker "network_mode: host"

Hi I am trying to run remote debugging using dlv inside a docker container with VSCode. Problem starts when I specify docker-compose flag network_mode: host instead of the specific port (This is required due to use of MQTT). This causes VSCode to throw to the following error: "Failed to continue: "Error: connect ENCONNREFUSED …"" .vscode/launch.json […]

By mmichal
Published
Categorised as debugging, delve, docker, go, visual-studio-code Tagged , , , ,
1 2 3 43

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq