I'm following the Docker tutorials here https://docs.docker.com/get-started/part3/
When I get execute the command docker swarm leave --force near the end of the pages tutorial I keep getting a Error response from daemon: context deadline exceeded
Every subsequent time I do the docker swarm leave --force command the terminal appears to just hang, it doesn't provide the error message anymore, but it doesn't return to the prompt for me to enter any commands unless I do a CTRL+C.
The docker swarm init command at the beginning of the linked tutorial also is unresponsive when its in this state.
The only time the docker swarm commands work again is if I close out my VM instance and restart it. But when I follow the steps again from the link I get the same error on the docker swarm leave --force command
Any ideas why its doing this?
I'm running Ubuntu 18.04.1 LTS in Virtual Box, with docker version 18.09.0-rc1, build 6e632f7.
I saw this other link Cannot leave swarm mode about the same issue, it is 2 years old and the answers there appear to be work arounds or full out remove Docker completely and reinstall to get it working. I'm hoping that there is another way to fix this.