Problems running a transient docker container

8 views
Skip to first unread message

Jonathan A.

unread,
Aug 15, 2017, 9:58:03 AM8/15/17
to Salt-users
I'm trying to get Salt to run a "transient" docker container but not having much luck. This docker container merely creates a few files on the host and then exits. The problem I'm having with docker_container.running is that either it doesn't always run it (if I set start: False), or it demands that it is running after the state is done, which it won't be. Is there any way to tell Salt I don't care if it is running when it is done?

mydeploycontainer:
  docker_container.running:
    - name: mydeploycontainer
    - environment: 'INSTALL_ONLY=y'
    - start: True
    - require:
      - docker-pip-pkg

Jonathan

Reply all
Reply to author
Forward
0 new messages