I have written my own simple docker image. It works fine.
Then I created my docker swarm with only two nodes a master and a slave and started a service with the following command:
docker service create --mode global --name benchmark briomkez/ethereum-test
It loops, because it cannot create the service (the default command is a simple ls
).
Why does this happen? Is it expected?
If I run the same service with a different command, e.g.:
docker service create --mode global --name benchmark briomkez/ethereum-test geth
It works like a charm. Is this behavior expected, what is the motivation for the loop?