Working with Multiple Dev Containers in VS Code

preview_player
Показать описание
Experience consistency, portability, and reproducibility with Dev Containers. In this video, we'll see how we can work with multiple Dev Containers in VS Code.

0:00 Dev Containers Overview
0:59 Demo Project Structure
2:42 Docker Compose Overview
5:11 Working with one VS Code window
7:06 Working with multiple VS Code windows
8:36 Extending your docker compose
9:16 Summary
Рекомендации по теме
Комментарии
Автор

Thank you very much for this video. I searched on how to do this for hours one night (& tweeted multiple people with no replies) and just thought it wasn't possible: multiple devcontainer files

RockTheCage
Автор

Great video. Works great if your docker runs in your local pc. If you are working on a remote server, switch container does not work. But if you click on remote explorer it gives the option to open on a separate window the container you want to work with. In my case I open the back end first, then with remote explorer open the front end.

osorito
Автор

It's not very clear why a second file was added and how it is supposed to work

alexanderqwerty
Автор

Thank you so much for the video! But not sure why I can't complete the rest... I cloned the project, opened vscode at the project root, pressed F1 and selected Dev Containers: Reopen in Container, then I picked Python Container but vscode kept on asking to Add Dev Container Configuration Files, From a predefined container configuration definition..., From 'docker-compose.yml', Learn More... What did I do wrong?

michaelta
Автор

Thx very interesting. Is there an example of communication between the dev containers (client-server) for enabling debugging on each side of solution also?

a-di-mo
Автор

didnt really understand that last tip. What was that file for? Maybe it will make sense when i start using it.

rtpHarry
Автор

Is it possible to mount subfolder instead of repo's root? I tried to change "." to "./local/path" in compose file, but VScode couldn't create workspace. Is it hardcoded to ".:/workspace"?

divelix
Автор

when I try to Reopen containers it always add a new devcontainer file not sure what I did wrong with my setup

rjrimorin
Автор

Is it possible to have a dev container depend on a non dev container (like a container for a database?)

adstr-learning
Автор

how do you customize the terminal like that?

ishananaguru
Автор

Thank you so much for a very useful tutoril. Can you please show a demo of using devcontainers with django?

muhannadalulaby
Автор

Cool, But what if a container1 is a git repository and container2 is another git repository. Now i want to create a 3rd repository only for the devcontainer environment, but I want to keep the container1 and container2 separately so i could work on it using git in the devcontainer.

GoogleAccount-oimw
Автор

Seems kinda gross to have to switch back and forth. Would make more sense if they were both visible in the files explorer at the same time, and the one window showed all of the connected containers down the bottom left bar.

WalterSamuels
Автор

Good video, but the containers are not exactly working WITH each other as in they are not communicating with each other. For example, how would I use a base dev container for Nodejs/Typescript and combine that with a android-docker container so that I can invoke android build commands from a react native project in the first container?

manjurulkhan
Автор

Please add VERTICAL TABS just like in Microsoft Edge! ! ! It's urgent for people with widescreen monitors

AlanDanielx
Автор

multiple environments? just stop using windows to develop on, all you really need is a Linux dev pc, just one envirnoment. the time wasted with loading and configuring your containers and installing stuff over and over when you keep switching containers. it is so sad what windows developers need to do to get away from windows. 😂

RajinderYadav
Автор

the container-1 doesn't link with container-2?

jpillstream
Автор

I kinda wish there was a way to fetch the codespace secrets to my local using gh cli or something

ShadoFXPerino