Download the Docker CLI executable (docker.exe) from the official Docker static binaries repository: https://download.docker.com/win/static/stable/x86_64/
Using Docker command with -H flag: docker -H ssh://user@vm-ip ps
Set environment variable to avoid specifying -H every time: On PowerShell: $env:DOCKER_HOST="ssh://user@vm-ip"
For convenience, edit SSH config file (~/.ssh/config) to define the VM host with parameters: Host myvm HostName vm-ip User user IdentityFile C:\path\to\private_key
Then set DOCKER_HOST using the config name: On PowerShell: $env:DOCKER_HOST="ssh://myvm"
Then simply use Docker command as normal: docker ps