Ask Your Question
2

Running docker on devstack

asked 2014-07-02 15:12:11 -0500

sabeensyed gravatar image

I installed docker as a plugin on devstack following this: https://github.com/openstack/heat/tree/master/contrib/docker/docker (https://github.com/openstack/heat/tre...) . I had to make some changes though, instead of: ln -sf $(cd heat/contrib/docker-plugin/plugin; pwd) /usr/lib/heat/docker, I did this: ln -sf $(cd docker/resources; pwd) /usr/lib/heat/docker and then I manually added this: /opt/stack/heat/contrib/docker/docker/resources into etc/heat/heat.conf.

After that I'm trying to deploy this template (this is just to ensure that it's working, I know that it's not doing anything special): https://github.com/BeenzSyed/Templates/blob/master/simple_docker.yaml (https://github.com/BeenzSyed/Template...)

I get this error when I try to spin up the stack: my_docker_container MissingSchema: Invalid URL u'10.0.0.2/v1.12/containers/create': No schema supplied. Perhaps you meant http://10.0.0.2/v1.12/containers/create (http://10.0.0.2/v1.12/containers/create?)

What change do I need to make to get this working?

Thank you!!!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-07-08 21:47:42 -0500

yuemin gravatar image

Hi Sabeen,

This error maybe result from the "docker_endpoint" part in this template. You can just remove this docker_endpoint property, but in this way, the container is create locally.

Otherwise, you might want to use "str_replace" to manully add a "http://" to the "docker_endpoint" properties, then docker remain installed on the nova server instance.

I do not know if this is a bug in heat-docker plugin, but my error could be solved by this way.

edit flag offensive delete link more

Comments

Yep, exactly right.

It's a bug in the template from the original blog post (one of many, unfortunately - take a look at https://ask.openstack.org/en/question... if you run into any others).

zaneb gravatar imagezaneb ( 2014-08-07 13:27:51 -0500 )edit

Your Answer

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

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-07-02 15:12:11 -0500

Seen: 665 times

Last updated: Jul 08 '14