Docker Community Forums

Share and learn in the Docker community.

Docker Swarm service did not terminate (v1.12-rc2)


(Kenneth Heo) #1

Hello, everyone.

I wanted to launch an app only once like hello-world app on the Docker Swarm cluster.

So, I tried to create service on the docker swarm like.

docker service create --replicas 1 --name hello hello-world

But, unfortunately, the service did not terminate.

I wanted to run the app just once on the Docker Swarm cluster like a normal docker command that was

docker run --rm --name helloworld hello-world

Is there any solution?

thx.


(Kenneth Heo) #2

Docker Swarm mode is only for a service.