Edits history of script submission #384 for ' Stop a docker container (docker)'

  • bash
    One script reply has been approved by the moderators
    Ap­pro­ved
    name="${1:-my_container}"
    
    # Stop the container if it is running
    docker stop "$name" 2>/dev/null || true
    

    Submitted by hugo697 372 days ago

  • bash
    name="${1:-my_container}"
    
    # Stop the container if it is running
    docker stop "$name" 2>/dev/null || true
    

    Submitted by yassinsiouda74165 1070 days ago