Docker Swarm - STACK DEPLOY

I am deploying a stack using “docker stack deploy votin-app-cht ----compose-file docker-stack.yml” but it is giving me the below error.

Error response from daemon: rpc error: code = 4 desc = context deadline exceeded .

if I rename the file to docker-compose.yml and use docker compose up then it seems working.

I am using the same .yml file which is in the course lecture.

Hello csmkec

restarting the docker daemon on the nodes in the swarm cluster will solve the issue.

Thanks,
KodeKloud Support