Containers/Get-ContainerForImage.ps1
function Get-ContainerForImage { Param( [Parameter(Mandatory=$true)] [string]$Image ) if (!$Image.Contains(':')) { $Image = $Image + ':latest' } Get-Containers | where Image -eq ('{0}' -f $Image) } Export-ModuleMember -Function Get-ContainerForImage |