Skip to content

Usage in combination with Dev Containers extension #84

Closed

Description

I would like to view the Docker containers, images, etc within a project's container, as allowed by the Dev Containers extension, but the Docker executable cannot be reached, per the below screen. Is this an intended scenario for the Container Tools extension or am I misusing it?

Image

Activity

  1. bwateratmsft commented on May 21, 2025

    @bwateratmsft
    Collaborator

    Converting this to a discussion since that seems like the right place for it.

    There are two different approaches you can take here, depending on what you want to happen.

    1. The first is to set up Docker-in-Docker, that is, install Docker into the container and you can use it normally. Containers you start will run in the host container. The Container Tools extension should work without issues.
    2. The next is to set up Docker-beside-Docker. This is more complicated, but may be more in line with what you want. Essentially, you volume map in the Docker socket and the Docker CLI, so that containers you start run beside the host container, on the host itself. Once you've done all that setup, again the Container Tools extension should work without issues.
  2. locked and limited conversation to collaborators on May 21, 2025
  3. converted this issue into a discussion #85 on May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions