Open freibuis opened 8 years ago
I'm trying to figure out if this module can be used to initialize a docker swarm cluster from scratch. And then the next step would be of course what this issue is about - managing services.
Can 5.3.0 initialize a docker swarm? What is the roadmap/timeline for incorporating docker 1.12+ swarm support?
since the release Docker 1.12, docker service create should be used instead of docker run if the node is part of the docker swarm created by or join/init or create an swarm hash inside docker::run
I propose that docker::run should be an alias of the service create command. may be some thing like this
as a swarm hash
or
should run as
info from here https://docs.docker.com/engine/reference/commandline/service_create/
the reason for creating it in docker::run is because docker::service is already taken and I believe that in the future docker will notice that its in the swarm service command is really the same/alias to the docker run command with extras like
--replicas