In order to use remote Docker host, as a prerequisite you need SSH enabled (required login using SSH keys).
Go to C:\Users\YOUR_USERNAME\.ssh
and copy content of id_rsa.pub
file
If the file does not exist, generate the SSH key-pair using following command
ssh-keygen -t rsa -b 4096
You can use password-based authentication to get into linux machine for the first time, and then use the following command:
echo your_public_ssh_key >> ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
with:
docker context create workshop-vm --docker host=ssh://user@host
docker context use workshop-vm
I have this error and I can't figure it what wrong