docker-machine 创建主机报错解决

执行:docker-machine create --driver generic --generic-ip-address=10.221.120.225 host1
报错:Error creating machine: Error waiting for machine to be running: Maximum number of retries (60) exceeded
解决:
  1. ssh-copy-id -i /root/.ssh/id_rsa.pub root@10.221.120.225
  2. docker-machine create --driver generic --generic-ip-address=10.221.120.225 --generic-ssh-key /root/.ssh/id_rsa --generic-ssh-user root --generic-ssh-port 22345 host1
执行2时报错:
Error creating machine: Error running provisioning: ssh command error:
command : sudo systemctl -f stop docker
err : exit status 5
output : Failed to stop docker.service: Unit docker.service not loaded.

 

posted @ 2022-04-29 14:33  aaron_agu  阅读(254)  评论(0编辑  收藏  举报