[Command]Search the Docker Hub for images(自訂格式顯示)


19
views
0
4 months ago by
Description:基本上就是從官方Docker Hub來抓image,並顯示你要的格式
Command:docker search --format "{{Placeholder}}" TERM
  • 如果兩個可以"{{Placeholder}} : {{Placeholder}}" 或是"{{Placeholder}},{{Placeholder}}"都可以,以方便閱讀為主
  • 三個就"{{Placeholder}}、{{Placeholder}}、{{Placeholder}}"以此類推
  • Placeholder Description
    .Name Image Name
    .Description Image description
    .StarCount Number of stars for the image
    .IsOfficial “OK” if image is official
    .IsAutomated “OK” if image build was automated
Example: placeholder用"{{.Name}}: {{.StarCount}}" ,term用nginx
Result:


Similar posts:
Search »