docker swarm service not starting troubleshooting

    By: Manu
    2 years ago

    If services are giving you status 0/1 or keep on restarting you can investigate

    run

    docker service ls
    

    Get service id

    docker service ps --no-trunc serviceIdHere
    

    Or Check logs

    docker service logs serviceIdHere
    

    In logs, you can check why service is not running