Project scenario:
The springboot project uses docker for deployment
Problem and solution:
使用Jenkins 远程部署 遇到的 Permission denied (publickey,gssapi-keyex,gssapi-with-mic):
Solution:
First, the server has to generate a key: ssh-keygen -t rsa
authorized_keys: key storage file (storing the key that needs to access the machine)
id_rsa.pub: the style of the file generated by the key (ssh-rsa starts with ciphertext in the middle and finally the hostname):
ssh-rsa AAAA************************************** ********* root@upm-sit-web
and then execute the command: ssh-copy-id 192.168.1.1 (the ip of the host to be accessed)
to verify whether the configuration is successful: ssh 192.168.1.1 hostname If the host name is returned It proves that the configuration is successful. If you are prompted to enter a password, the configuration has failed (you can try two-way configuration).
Error response from daemon: No such container: demo-project
Solution:
First use the command: docker ps -a to see if there is such a container