Thanks. Now's clear :)
--BK

On Fri, Sep 26, 2014 at 6:27 PM, Guillaume DEDRIE <
[email protected]> wrote:

> Hi /BK,
> If you want to manage volumes in Docker containers, you can use the same
> Docker CLI-style syntax: [host_directory]:[container_directory] into the
> volumes parameters (for multiple mounts, use list syntax).
>
> I have an example with the official PostgreSQL Docker image:
>
> - name: Run PostgreSQL Docker image
>   docker:
>     name: postgresql
>     image: postgres
>     ports: 5432:5432
>     volumes:
>       - /opt/postgresql/data:/var/lib/postgresql/data
>     state: running
>
> For your example, volumes should end up with something like that:
>
> […]
>    volumes:
>      - /opt/my_logs1:/opt/my_logs1
>      - /opt/my_logs2:/opt/my_logs2
> […]
>
>
> I hope that my answer will be helpfull.
>
> Regards,
> Guillaume
>
>
> Le jeudi 25 septembre 2014 21:01:15 UTC+2, Bk Lau a écrit :
>>
>> Hi :
>>
>> What is the syntax for the "volumes" parameter in the docker module?.
>> There is no example.
>> Assume that I have a host dirs at "/opt/my_logs1"  and "/opt/my_logs2"
>> and I want to map it to a container volumes at "/opt/logs1" and
>> "/opt/logs2" respectively.
>> So what would the syntax be?
>> Pls advise.
>>
>> Thanks,
>>
>> /BK
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/Qr51H-vy2iE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/39047be4-fb3d-484c-976e-b9bf9d954139%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/39047be4-fb3d-484c-976e-b9bf9d954139%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAKLwZzd36Xg7mu3r_WzN7b8xF04CaTz%2BfuimOJeCvkFcu3UJkQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to