docker / docker/cli

Add support for `docker (compose) run/up` presets like `docker buildx bake`

Open
#6,271 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature status/0-triage
Dominant language
Go
Stars
6.1k
Forks
2.2k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

Description

Some containers and compose files could be launched in a bunch of ways. It would be very convenient if Docker (compose) could support similar "presets" for running/ups containers like docker buildx bake exists for build presets.

In general way, we could also create a docker-run file (name is preliminary) with run targets and declarative options similar to docker-bake.

Also these presets could be generalized like CMake (c++ build system) done for their build stages: https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html

Possibly another docker commands could be "presettable" via this generalized approach

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing docker buildx bake preset behavior and the docker compose run and up commands, then compare the referenced CMake presets model. Define the preset file format, supported commands, and declarative options before implementation; done means a documented, working preset approach for launching containers.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, docker, docker-compose, go
Domain
cli, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.