Skip to content

Docker container based on Windows Server Core with Red Gate SQL Compare

Notifications You must be signed in to change notification settings

JohanSpannare/DockerSqlCompare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

DockerSqlCompare

Delete all containers

docker rm $(docker ps -a -q)

Delete all containers not running

docker rm $(docker ps -q --filter "status=exited")

Delete all images

docker rmi $(docker images -q)

Delete all images dangling

docker rmi $(docker images -q --filter "dangling=true")

Rebalancing containers accross all nodes in collection

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 }} }

About

Docker container based on Windows Server Core with Red Gate SQL Compare

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published