# doubt

**URL:** <https://forum.ansible.com/t/doubt/26743>\
**Category:** Ansible Project\
**Created:** [February 15, 2018, 9:52am UTC](https://forum.ansible.com/t/doubt/26743 "2018-02-15T09:52:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dark\_Night](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@Dark\_Night](https://forum.ansible.com/u/Dark_Night)\
**Post date:** [February 15, 2018, 9:52am UTC](https://forum.ansible.com/t/doubt/26743/1 "2018-02-15T09:52:00Z")

</div>

let me out from this below

how can i integrate ansible with docker-container  
the function of docker commands run on ansible module

for example  
docker pull command run ansible

- name: pull an image

```auto
  docker_image:
    name: centos-7

```

its not working can anyone help me

its contain this error  
ERROR! ‘docker\_image’ is not a valid attribute for a Play

---

<div class="post-metadata">

**Author:** ![Manuel\_Schmidt](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@Manuel\_Schmidt](https://forum.ansible.com/u/Manuel_Schmidt)\
**Post date:** [February 15, 2018, 11:48am UTC](https://forum.ansible.com/t/doubt/26743/2 "2018-02-15T11:48:31Z")

</div>

Hey

you are nit indented your yaml file correctly. The docer\_image command must be inside the task you have started with “- name”. That means at least as much space until th n of name.

For your further reference: [http://docs.ansible.com/ansible/latest/YAMLSyntax.html](http://docs.ansible.com/ansible/latest/YAMLSyntax.html)

Regards

---

<div class="post-metadata">

**Author:** ![Dark\_Night](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@Dark\_Night](https://forum.ansible.com/u/Dark_Night)\
**Post date:** [February 16, 2018, 5:00am UTC](https://forum.ansible.com/t/doubt/26743/3 "2018-02-16T05:00:09Z")

</div>

Thanks for your support

im a beginner for ansible can u rebuild to this one
