microsoft / vscode-dev-containers

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!
https://aka.ms/vscode-remote
MIT License
4.7k stars 1.41k forks source link

Run command before devcontainers starts #1740

Open juankb1024 opened 1 year ago

juankb1024 commented 1 year ago

I'm migrating my dev process to VSCode Dev containers and I want Dev containers to start colima before it starts.

I've tried with initializeCommand but that executes before the container's initialization, not Dev containers itself.

The reason I need it this way is because VSCode Dev Container will not detect the docker socket until colima starts.

One work around is to make colima start on startup but i don't always need to have colima opened.

So is there a way to achieve this on the current version?