A dotnet tools for pushing docker image over SSH
![NuGet Status](https://camo.githubusercontent.com/a88ba3e55cb70995d91b9775e94fee0dc24fee06a7feabba4b5d505ec31b8339/68747470733a2f2f696d672e736869656c64732e696f2f6e756765742f762f446f636b65724f7665725353482e7376673f7374796c653d666c6174)
1. Install as dotnet tools
dotnet tool install DockerOverSSH --prerelease
2. Push docker image over SSH
dotnet docker-over-ssh --ssh-key "/Users/dev/.ssh/id_ed25519" \
--ssh-host "192.168.10.10" \
--ssh-user "dev" \
--local-hostname "kubernetes.docker.internal" \
--local-port 4040 \
--registry-host "192.168.10.10" \
--registry-port 5000 \
--image "kubernetes.docker.internal:4040/myrepo/db:latest" \
--image "kubernetes.docker.internal:4040/myrepo/service1:latest" \
--image "kubernetes.docker.internal:4040/myrepo/api:latest"
- The local image name format must be
$local-hostname:$local-port/$image-id:$image-tag
dotnet run --ssh-key "/Users/dev/.ssh/id_ed25519" \
--ssh-host "192.168.10.10" \
--ssh-user "dev" \
--local-hostname "kubernetes.docker.internal" \
--local-port 4040 \
--registry-host "192.168.10.10" \
--registry-port 5000 \
--image "kubernetes.docker.internal:4040/myrepo/db:latest" \
--image "kubernetes.docker.internal:4040/myrepo/service1:latest" \
--image "kubernetes.docker.internal:4040/myrepo/api:latest"