docker-swarm-deploy-action
docker-swarm-deploy-action copied to clipboard
docker system dial-stdio has exited with status 255
Hello,
I have a problem using your tool;
error during connect: Get http://docker/v1.40/info: command [ssh -l XXX-XXX -p XXX -- XXX.com docker system dial-stdio] has exited with exit status 255, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=Host key verification failed.
- name: Deploy to swarm
uses: sagebind/docker-swarm-deploy-action@v2
with:
remote_host: ssh://[email protected]:XXX
ssh_private_key: ${{ secrets.INFOMANIAK_SSH_PRIVATE_KEY }}
ssh_public_key: ${{ secrets.INFOMANIAK_SSH_PUBLIC_KEY }}
args: stack deploy --with-registry-auth --compose-file=docker-compose.yml ppp
It's a bit strange, I can run docker on remote like this:
docker -H ssh://[email protected]:XXX run -ti --rm alpine /bin/sh
I guess it's a problem in my side ... If you have an idea.
Thanks a lot!
Maybe linked to this: https://github.com/Azure/sonic-mgmt/issues/1581
Hello!
Did you get your server's the public SSH key?
Hello,
What do you mean? Update the known_hosts of my server with the public SSH key?
No. Your server has it's own public key. You can find it using ssh-keyscan <your_host>
command (run from your local computer). Then you have to set one of these keys (I prefer ssh-rsa
one) as ssh_public_key
. Note, that you have to start it from ssh-rsa
word.
Look at these materials if you want to dive deeper: https://youtu.be/52RzPrdn6Uo?t=298 https://superuser.com/questions/1271102/how-to-find-public-key-of-the-server-using-any-sftp-ssh-client