Open nibzy26 opened 6 years ago
I am running into the same issue. Any help appreciated ! https://stackoverflow.com/questions/51407444/ansible-container-docker-errors-dockerexception-error-while-fetching-server-api
+1
That's quite confusing
You are adding that in the role for the container build, which looks erroneous
name: Add a container to a network, leaving existing containers connected
docker_network:
name: ocs_network
You should try whether the Docker daemon is really started.
For example with
$ sudo systemctl status docker
In my case Docker setup was broken in general (and therefore not related to ansible)
You should try whether the Docker daemon is really started.
For example with
$ sudo systemctl status docker
In my case Docker setup was broken in general (and therefore not related to ansible)
uggg can't believe this was my problem. Ansible seems to bomb out with a completely misleading error... but still i should have ensured docker was running!
ISSUE TYPE
container.yml
OS / ENVIRONMENT
SUMMARY
GOAL: I just want to start a container to be in macvlan network which i have already configured on my host. I tried setting up DOCKER_HOST to some suggested values online but didnt work. I AM RUNNING EVERYTHING LOCALLY issue: Everything was working fine untill i added these lines in my roles/base/tasks/main.yml file. Now the ansible-container build fails...
connected:
- container_a
appends: yes
STEPS TO REPRODUCE