how to stop docker service in ubuntu code example Example: how to stop docker in ubuntu sudo systemctl stop docker #To stop docker from terminal.