Public/Remove-Container.ps1
function Remove-Container { param ( [ValidateNotNullOrEmpty()] [string] $Name, [switch] $Force, [int] $TimeoutMS = 10000 ) if ( $Force ) { Stop-Container -Name $Name } Invoke-ClientCommand -ArgumentList 'rm', $Name -TimeoutMS:$TimeoutMS Write-Debug "Docker container removed." } |