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.
文章出处:http://www.cnblogs.com/aaron-agu/
只有毅力和决心才能使人真正具有价值!