# Docker - how to exec after brining up container

**URL:** <https://forum.ansible.com/t/docker-how-to-exec-after-brining-up-container/22619>\
**Category:** Ansible Project\
**Created:** [September 22, 2016, 5:16pm UTC](https://forum.ansible.com/t/docker-how-to-exec-after-brining-up-container/22619 "2016-09-22T17:16:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joaquin\_Menchaca](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@Joaquin\_Menchaca](https://forum.ansible.com/u/Joaquin_Menchaca)\
**Post date:** [September 22, 2016, 5:16pm UTC](https://forum.ansible.com/t/docker-how-to-exec-after-brining-up-container/22619/1 "2016-09-22T17:16:51Z")

</div>

After brining up a docker container

- name: Docker Container  
docker:  
name: superduper  
image: mycompany/superduper/“{{ git\_hash\_short }}”  
state: reloaded  
pull: always  
command: bash “{{ path\_to\_script }}”/wrapper.sh  
env:  
APP\_ROOT: “{{ app\_root }}”

with docker module, how could you then do equivalent of ‘docker exec -t superduper some\_command’ without doing a command or shell?
