Is it ok to logout after calling docker stack deploy? If I immediately terminate the process that called docker stack deploy will the docker swarm continue?

My use case is this:


In my CI job I ssh into my swarm cluster node.
I copy the new stack.yml file and issue
docker stack deploy -c stack.yml stack
Since this immediately returns, my CI job disconnects from ssh.


My question is whether this can lead to some unforeseen side-effects? Is my deploy being terminated midway? Or will docker swarm be smart enough to keep going on its own.

Thanks
It is safe. As soon as docker returns it is safe to logout/leave the shell.

The issue was that Docker 18.06.0-ce broke docker stack deploy. Reverting to 18.03.1 (specifically 18.03.1~ce-0~ubuntu) made it work.