Repository navigation
Docker Wormhole configuration #1640
|
I am attempting to set up a DevContainer so that I can use a container as a dev environment using visual studio code, however I am running into issues with TestContainer not finding the docker host. My repository can be seen here: Am I missing something obvious? |
Replies: 1 comment 3 replies
|
I think ive been a fool, I did review other answers but think ive possibly found it here: I will give it a go tomorrow 🤞 |
So I was actually trying to use docker outside of docker so I had to make a slightly different change than just following your example.
You are correct though, I needed to provide the Docker daemon to the Dev Container (by adding the docker-outside-of-docker feature of dev containers).
For my dev container I was actually using docker compose so this ended up being my full set up:
devcontainer.json:
{ "name": "C# (.NET) and PostgreSQL", "dockerComposeFile": "docker-compose.yml", "service": "app", "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", "features": { "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} }, "customizations": { "vscode"…