diff --git a/pages/common/docker-search.md b/pages/common/docker-search.md new file mode 100644 index 0000000000..39e7df6614 --- /dev/null +++ b/pages/common/docker-search.md @@ -0,0 +1,28 @@ +# docker search + +> Search for Docker images on Docker Hub. +> More information: . + +- 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}}`