NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
im using a remote container as my dev environment. so essentially in my project i have a Dockerfile, docker-compose.yml and my devcontainer.json that vscode uses to build, start and launch into the container with my code mounted. works great so far.
The thing is, on the linux host, if do a docker ps, i see my single container, but if look at the docker images, two are created, and the last one is the one started.
(note in the above 'my_proj' part of the image name comes from my the vscode project folder name i believe.) i can delete the first image given that it's not actually started. but i want to understand why this is happening? it happens every time, if rebuild or rebuild with no cache.
(On a side note - is there a way to specify an image name and tag using the .devcontainer.json?)
My setup is:
running on Windows 11
remoting into linux host via ssh, where code is in my home
when project is opened, vscode builds, starts and launches into the container environment, mounting my source.
im using a remote container as my dev environment. so essentially in my project i have a Dockerfile, docker-compose.yml and my devcontainer.json that vscode uses to build, start and launch into the container with my code mounted. works great so far. The thing is, on the linux host, if do a docker ps, i see my single container, but if look at the docker images, two are created, and the last one is the one started.
my docker-compose looks like this:
and my .devcontainer.json looks like this:
docker ps shows a single container running with:
docker images shows two images created, with names:
(note in the above 'my_proj' part of the image name comes from my the vscode project folder name i believe.) i can delete the first image given that it's not actually started. but i want to understand why this is happening? it happens every time, if rebuild or rebuild with no cache.
(On a side note - is there a way to specify an image name and tag using the .devcontainer.json?)
My setup is: