docker rm $(docker ps -a -q)
docker rm $(docker ps -q --filter "status=exited")
docker rmi $(docker images -q)
docker rmi $(docker images -q --filter "dangling=true")
docker service ls --format "{{.Name}}" | %{$serviceId = $; docker service ps $ -f desired-state=running --format "{{.Node}}" | Group | %{if($.Count -gt 1){Write "Rebalancing $serviceId due to dupplicate containers on same node $";docker service update $serviceId --force --detach=true }} }