[openstack-dev] [Heat][Docker] How to Dockerize your applications with OpenStack Heat in simple steps

Marouen Mechtri mechtri.marwen at gmail.com
Wed Aug 27 14:30:15 UTC 2014


Hi Thiago,

Yes Docker could be used to replace the virtualization layer on the Compute
Node, it's the case if we configure Nova to use the Docker Driver.

In our case, we are orchestrating Docker in OpenStack via Heat.  We used a
VM as a docker host for many reasons :

  - It is a way to economize IP addresses :

If the docker host is a physical server,  every container needs a floating
IP (to be reachable from outside).  When the docker host is a VM, we
associate one floating IP to it and we can access to containers via binding
ports  (@VM-floatingIP:container-binding-port).

  - To achieve stronger isolation and security

  - To easily integrate docker with existing VM-based management and
monitoring tools

  - We think that Docker and virtualization could also be complementary.


Thank you for the question
We will update the document to clarify these points.

https://github.com/MarouenMechtri/Docker-containers-deployment-with-OpenStack-Heat

Regards,
Marouen


2014-08-26 21:35 GMT+02:00 Martinx - ジェームズ <thiagocmartinsc at gmail.com>:

> Hey Stackers! Wait!   =)
>
> Let me ask something...
>
> Why are you guys using Docker within a VM?!?! What is the point of doing
> such thing?!
>
> I thought Docker was here to entirely replace the virtualization layer,
> bringing a "bare metal-cloud", am I right?!
>
> Tks!
> Thiago
>
>
> On 26 August 2014 05:45, Marouen Mechtri <mechtri.marwen at gmail.com> wrote:
>
>> Hi Angus,
>>
>> We are not using nova-docker driver to deploy docker containers.
>>
>> In our manual, we are using Heat (thanks to the docker plugin) to deploy
>> docker containers and nova is just used to deploy VM. Inside this VM
>> heat deploy the docker software. The figure below describes the
>> interactions between different components.
>>
>> Regards,
>> Marouen
>>
>>
>>  [image: Images intégrées 1]
>>
>>
>>
>>
>> 2014-08-26 0:13 GMT+02:00 Angus Salkeld <asalkeld at mirantis.com>:
>>
>> This seems misleading as there is no description on setting up
>>> nova-docker or using the heat docker container.
>>>
>>> -Angus
>>>
>>>
>>>
>>> On Tue, Aug 26, 2014 at 5:56 AM, Marouen Mechtri <
>>> mechtri.marwen at gmail.com> wrote:
>>>
>>>>  Hi all,
>>>>
>>>> I want to present you our guide for Docker containers deployment with
>>>> OpenStack Heat.
>>>> In this guide we dockerize and deploy a lamp application on two
>>>> containers.
>>>>
>>>>
>>>> https://github.com/MarouenMechtri/OpenStack-Heat-Installation/blob/master/Docker-containers-deployment-with-OpenStack-Heat.rst
>>>> <https://github.com/MarouenMechtri/OpenStack-Heat-Installation/blob/master/OpenStack-Heat-Installation.rst>
>>>>
>>>>
>>>> Hope it will be helpful for many people. Please let us know your
>>>> opinion about it.
>>>>
>>>> Regards,
>>>> Marouen Mechtri
>>>>
>>>> _______________________________________________
>>>> OpenStack-dev mailing list
>>>> OpenStack-dev at lists.openstack.org
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>
>>>>
>>>
>>> _______________________________________________
>>> OpenStack-dev mailing list
>>> OpenStack-dev at lists.openstack.org
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>
>>>
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140827/49dd8eb2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: docker-plugin.jpg
Type: image/jpeg
Size: 99834 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140827/49dd8eb2/attachment.jpg>


More information about the OpenStack-dev mailing list