docker / dev-environments

63 stars 32 forks source link

The directory (~/.docker/devenvironments) confuse me. #138

Open iFanze opened 1 year ago

iFanze commented 1 year ago

Expected behavior

When creating a new docker dev environment, I can choose one of the sources:

Either of them will create a folder under ~/.docker/devenvironments, with a file devenv.log.

When I select Local directory, it works as expected: default compose-dev.yaml file was created under my directory. I can connect to the container in vscode, and edit the file to change the image to my customized image. After deleting and restarting the container, it takes effect.

However, when I choose "Exsiting Git repo", it behaves different out of my expectation. I cannot change the image this way (edit the file in vscode).

Actual behavior

From my observation, to modify compose-dev.yaml file in the volume by vscode has no effect. But it's useful if I modify ~/.docker/devenvironments/[devenv-name]/repository/compose-dev.yaml file in macOS.

My question:

Information

Output of /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check

Steps to reproduce the behavior

  1. ...
  2. ...
StefanScherer commented 1 year ago

Thanks for the report. Dev Environments is still a beta feature with some rough edges here and there. This is good feedback and we'll discuss in the team how to improve these local folders.