docker / docker/cli

[feature] Add docker ps filter for current runtime

Open
#740 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

containerd-integration kind/enhancement
Dominant language
Go
Stars
6.1k
Forks
2.2k
Avg merge
1d 15h
Merged PRs (30d)
43

Description

My specific use case for this is to filter and remove stray containers left by unit tests but I'm sure there are others as well.

A cronjob or similar would periodically filter and remove containers using a specific image and have a runtime above a certain amount.

Runtime could be given in seconds, or a more complete time format if deemed appropriate.

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

The issue names no files, tests, or entry points. Start by locating the docker ps filter handling and reviewing existing filter syntax; done would require an agreed current-runtime filter that supports the stated container cleanup use case, with tests for its semantics.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
cli
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.