Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-outside-of-docker: compose and other cli-plugins #139

Closed
floge07 opened this issue Mar 19, 2023 · 1 comment
Closed

docker-outside-of-docker: compose and other cli-plugins #139

floge07 opened this issue Mar 19, 2023 · 1 comment

Comments

@floge07
Copy link

floge07 commented Mar 19, 2023

The "docker-outside-of-docker" feature template works as expected and I can use the docker cli with access to the host docker.sock inside my devcontainer. But I quickly ran into the problem of the cli not knowing any "docker compose [...]" commands.

To my knowledge, all docker commands with an * are optional plugins for the cli:

host system:

Management Commands:
  builder     Manage builds
  buildx*     Docker Buildx (Docker Inc., v0.10.3)
  compose*    Docker Compose (Docker Inc., v2.15.1)
  config      Manage Docker configs
  container   Manage containers
  context     Manage contexts
  dev*        Docker Dev Environments (Docker Inc., v0.1.0)
  extension*  Manages Docker extensions (Docker Inc., v0.2.18)
  image       Manage images
  manifest    Manage Docker image manifests and manifest lists
  network     Manage networks
  node        Manage Swarm nodes
  plugin      Manage plugins
  sbom*       View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc., 0.6.0)
  scan*       Docker Scan (Docker Inc., v0.25.0)
  scout*      Command line tool for Docker Scout (Docker Inc., v0.6.0)
  secret      Manage Docker secrets
  service     Manage services
  stack       Manage Docker stacks
  swarm       Manage Swarm
  system      Manage Docker
  trust       Manage trust on Docker images
  volume      Manage volumes

devcontainer:

Management Commands:
  builder     Manage builds
  buildx*     Docker Buildx (Docker Inc., v0.10.4)
  container   Manage containers
  context     Manage contexts
  image       Manage images
  manifest    Manage Docker image manifests and manifest lists
  network     Manage networks
  plugin      Manage plugins
  system      Manage Docker
  trust       Manage trust on Docker images
  volume      Manage volumes

I'm going to add a manual install for this in my devcontainer dockerfile (based on this) but is there not any easier way using this feature-template?
Could a "plugins": [ "compose", ... ] option be added, or something like that?

@floge07 floge07 changed the title compose and other cli-plugins docker-outside-of-docker: compose and other cli-plugins Mar 19, 2023
@floge07
Copy link
Author

floge07 commented Mar 19, 2023

Uh sorry maybe this was the wrong repo... It seems I'm actually using https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker
I'm confused about what "docker-outside-of-docker" in this repo is for then...

@floge07 floge07 closed this as completed Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant