# Ansible w/ Docker - Show current Container state

**URL:** <https://forum.ansible.com/t/ansible-w-docker-show-current-container-state/25042>\
**Category:** Ansible Project\
**Created:** [July 21, 2017, 10:56am UTC](https://forum.ansible.com/t/ansible-w-docker-show-current-container-state/25042 "2017-07-21T10:56:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shai\_Shvili](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@Shai\_Shvili](https://forum.ansible.com/u/Shai_Shvili)\
**Post date:** [July 21, 2017, 10:56am UTC](https://forum.ansible.com/t/ansible-w-docker-show-current-container-state/25042/1 "2017-07-21T10:56:53Z")

</div>

Hello fellas!

Im working on a little project in which I’m using **Docker Containers.**

I’ll keep my question short:

I want to get the state of a running docker container!

What I mean by that is, that i want to get the current state of the container, that Docker shows you by using the “docker ps” command.

Examples would be:

1. Up
2. Exited
3. Restarting  
I want to get one of those results from a specific container. But **without** using the **Command** or the **Shell module**!

KR
