# Docker container always reloaded

**URL:** <https://forum.ansible.com/t/docker-container-always-reloaded/20753>\
**Category:** Ansible Project\
**Created:** [March 2, 2016, 6:22pm UTC](https://forum.ansible.com/t/docker-container-always-reloaded/20753 "2016-03-02T18:22:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy\_Knights](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Guy\_Knights](https://forum.ansible.com/u/Guy_Knights)\
**Post date:** [March 2, 2016, 6:22pm UTC](https://forum.ansible.com/t/docker-container-always-reloaded/20753/1 "2016-03-02T18:22:35Z")

</div>

I have a particular task that starts a docker container, and for some reason every time it runs it reloads the container. The task definition is below:

docker:  
name: zabbix  
image: “zabbix/zabbix-{{ zabbix.version }}”  
state: reloaded  
pull: always  
expose:

- 80
- 10051  
ports:
- “80:80”
- “10051:10051”  
env:  
TZ: “{{ timezone }}”  
ENVIRONMENT: “{{ env }}”  
ZS\_DBHost: “{{ zabbix.db.host }}”  
ZS\_DBUser: “{{ zabbix.db.user }}”  
ZS\_DBPassword: “{{ zabbix.db.password }}”

None of the above options have changed between runs so I’m not sure why it decides to reload every time. I have other docker tasks that (correctly) only reload the container when the parameters have changed.

I saw a thread about adding ‘net: bridge’ to stop this behaviour which I tried, but it didn’t work. Does anyone have any suggestions as to how I can make it operate correctly?

Thanks,  
Guy
