# Fact gathering when ansible run inside docker container

**URL:** <https://forum.ansible.com/t/fact-gathering-when-ansible-run-inside-docker-container/22210>\
**Category:** Ansible Project\
**Created:** [August 4, 2016, 3:52am UTC](https://forum.ansible.com/t/fact-gathering-when-ansible-run-inside-docker-container/22210 "2016-08-04T03:52:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![menonprasad](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@menonprasad](https://forum.ansible.com/u/menonprasad)\
**Post date:** [August 4, 2016, 3:52am UTC](https://forum.ansible.com/t/fact-gathering-when-ansible-run-inside-docker-container/22210/1 "2016-08-04T03:52:07Z")

</div>

I have a docker container from inside which I’m running ansible.  
When I gather facts for the container (ansible -m setup localhost) , i see that the network related (ansible\_default\_ipv4) facts are not gathered.  
Is there an explaination for this? Execution from outside the container is as expected

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [August 8, 2016, 8:20pm UTC](https://forum.ansible.com/t/fact-gathering-when-ansible-run-inside-docker-container/22210/2 "2016-08-08T20:20:49Z")

</div>

Those facts are gathered using standard tools for the OS detected, some of the containers are stripped/do not ship with these tools.
