Files
cheatsheet-tldr/tldr/docker-search
2025-06-05 00:20:17 +00:00

34 lines
843 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# docker search
> Search for Docker images on Docker Hub.
> More information: <https://docs.docker.com/reference/cli/docker/search/>.
- Search for Docker images by name or keyword:
`docker search {{keyword}}`
- Search for images and only show official ones:
`docker search {{[-f|--filter]}} is-official=true {{keyword}}`
- Search for images and only show automated builds:
`docker search {{[-f|--filter]}} is-automated=true {{keyword}}`
- Search for images with a minimum number of stars:
`docker search {{[-f|--filter]}} stars={{number}} {{keyword}}`
- Limit the number of results:
`docker search --limit {{number}} {{keyword}}`
- Customize the output format:
`docker search {{[-f|--format]}} "{{.Name}}: {{.Description}}" {{keyword}}`