How can I add parameters to a dockerio.running state in Salt?

I’m trying to run a 3rd party docker image from salt.
From the command line, the required statement is something like:

docker run -d progrium/consul -server -bootstrap

From Salt however I don’t know how to pass the parameters (-server and -bootstrap)
Is there a way to do that?

  • How to Pull all docker container images from docker repo at once?
  • Running php, apache and mysql with Docker & docker-compose
  • Using same containers with multiple project on local host
  • Database created in Dockerfile does not appear in running container
  • NginX times out connecting to java app
  • Permission denied: docker-machine create
  • regards, Frank

  • Error while is docker pull image
  • Cassandra on Mesos Container
  • Fork docker repository
  • cannot run X apps in a docker container, in Archlinux host
  • How to get Docker to run on a Windows System behind a corporate firewall?
  • Why is SSH from inside docker container to other instance/server so slow
  • 2 Solutions collect form web for “How can I add parameters to a dockerio.running state in Salt?”

    Have you tried this?

    salt 'dockerhost' 'progrium/consul -server -bootstrap'

    You can peek at the Dockerfile, and use the entrypoint to pass to dockerng yourself.

        - name: consul
        - image: progrium/consul
        - port_bindings: "8500:8500"
        - restart_policy: always
        - entrypoint: "/bin/start -server -bootstrap"
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.