Ansible and ‘Error while fetching server API version’
If you are getting this error
'Error while fetching server API version: {0}'.format(e) DockerException: Error while fetching server API version: ('Connection aborted.', error(2, 'No such file or directory'))
you should know that all you need is a Docker that is running ;)
I love this kind of errors :)
thanks a lot
systemctl enable docker.service
systemctl start docker.service
You just saved a life. Been trying to figure this out for 2 days.
i just added an ansible task to start the docker daemon before the main task to start the container
thanks a lot
Cool! Have fun with Docker ;)
this is great.
I have docker running and still get this :(
Yep, was stuck on this for a while too, thanks!