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?

  • Setup secured Jenkins master with docker
  • docker-compose does not see volumes changes in docker-compose.yml
  • Continuous deployment with docker
  • Docker reserve a certain amount of memory for container
  • Build Java Gradle project within a Docker container?
  • ERROR - Docker-compose/docker Windows
  • regards, Frank

  • Build multiple images vs start multiple containers
  • How to set the container name used for --link option with Docker
  • Docker not starting with docker start command in 1.3
  • docker deploy vs docker stack deploy
  • Access services from docker swarm from public
  • pod is not starting on gcloud container registry
  • 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.