Ask Your Question
1

Heat can't connect to docker server on VM

asked 2014-07-10 08:01:07 -0500

HoangDo gravatar image

Hi guys,

I installed docker plugin for heat. Then I try create a HOT script to test:

https://gist.github.com/dohuyhoang/74c2baf125279adb69ee

getdocker.sh is simply a downloaded version of #include https://get.docker.io

The script is modified from this example, since the example is incorrect. Strangely, I got this error when heat creating container:

Resource Create Failed: Connectionerror: Httpconnectionpool(Host='46.105.252.218', Port=80): Max Retries Exceeded With Url: /V1.9/Containers/Create (Caused By <Class 'Socket.Error'>: [Errno 113] Ehostunreach)

I checked on the VM, docker is successfully installed, but it run on local socket:

 http:///var/run/docker.sock/v1.13/

Heat can't connect to that socket. Did I misconfigured docker plugin?

edit retag flag offensive close merge delete

Comments

have you crossed this stage : https://ask.openstack.org/en/question...

SGPJ ( 2014-07-10 09:38:43 -0500 )edit

Thanks Shankar, I did check that post. The answer is removing end-point, that will make container run directly on compute node, and we can't use nova scheduler or neutron network.

I need to use endpoint, so it didn't work.

HoangDo ( 2014-07-10 09:49:31 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-04 12:58:31 -0500

updated 2014-08-04 13:46:54 -0500

I suspect that Docker is not actually running on port 80, and that you will need to further modify the template to set the correct TCP port in the Docker endpoint URL.

In fact, the Docker documentation implies that Docker does not bind to a TCP port at all by default, so you may need to explicitly configure Docker to listen on a port, and open that port in the firewall, depending on how Docker is packaged for your distribution.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Get to know Ask OpenStack

Resources for moderators

Question Tools

Follow
3 followers

Stats

Asked: 2014-07-10 08:01:07 -0500

Seen: 534 times

Last updated: Aug 04 '14