I'm trying to create a docker container 'bar_foo' on node1.com that links to another container on another node 'foo_bar:node2.com'.
The problem is i'm getting error.
"Could not get container for foo_bar"
i've made sure that the foo_bar container is running successfully, other containers on the node2.com is linking correctly to it.
I have also tried to ping node2.com successfully.
Creating the container is done through ansible:
- name: start container
docker_container:
image: bar_foo_image
name: bar_foo
log_driver: json-file
log_options:
max-size: 100m
max-file: "3"
links:
- "foo_bar:node2.com"