我试图:ansible-playbook install_docker.yml
并不断收到以下错误:
TASK [setup] *******************************************************************
fatal: [172.17.0.2]: UNREACHABLE! => {"changed": false, "msg": "ERROR! SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue", "unreachable": true}
我的剧本看起来像这样
---
- hosts: all
vars:
docker_opts: >
- "H unix:///var/run/docker.sock"
- "H tcp://0.0.0.0:2375"
remote_user: root
roles:
- angstwad.docker.ubuntu
通过使用以下方式复制ip来提供docker主机ip:
docker inspect apacheweb1 | grep IPAddress
我怎样才能到达泊坞主机?