There is no direct way to list all of the tags of the repository using Docker commands or using PowerShell cmdlets. In some cases, it is required to download the specific images. In this recipe, you'll find out how you can list all of the tags of the repository using PowerShell as well as using the sed and awk commands.
Finding Docker tags using PowerShell cmdlets from the remote registry
How to do it...
We will perform two activities in this recipe, one using PowerShell cmdlets and the other using Docker CLI commands:
- Define a variable, called repo, which contains the repository names. This will become part of the repo URLs:
PS> $repo='centos'
- Use the Invoke-WebRequest cmdlet to extract useful information...