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