Docker - how to exec after brining up container

6 views
Skip to first unread message

Joaquin Menchaca

unread,
Sep 22, 2016, 1:16:51 PM9/22/16
to Ansible Project
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?


Reply all
Reply to author
Forward
0 new messages