Skip to content
/ dcnb Public

🧹 cleanup Docker containers with autogenerated names

License

Notifications You must be signed in to change notification settings

azlkiniue/dcnb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DCNB 🧹

Docker Container Name Broom

This Go utility removes Docker containers with autogenerated names (for example, inspiring_franklin or practical_hawking).

How it works

  • Loads adjective/surname lists from Docker's names generator and detects names matching <adjective>_<surname> with an optional numeric suffix.
  • Uses the official Docker Go SDK to list all containers and remove the autogenerated ones.

Usage

go build
./dcnb

TUI controls:

  • y or Enter: delete all auto-named containers
  • n or q / Ctrl+C: cancel and exit

Cross-compile example:

GOOS=linux GOARCH=arm64 go build

Development

  • Format and test: gofmt -w *.go and go test
  • Names list: based on names-generator.go from Docker's source code.

About

🧹 cleanup Docker containers with autogenerated names

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages