Created
March 7, 2023 16:30
-
-
Save scicco/dcde68e7aad30f902c522ab3e6d3c65c to your computer and use it in GitHub Desktop.
stop_gitlab_runner.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker ps -a | grep runner | cut -d' ' -f1 | xargs -d $'\n' bash -c 'for arg do docker stop -t 1 "$arg"; docker rm "$arg"; done' _ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment