Created
March 25, 2024 19:14
-
-
Save ih0r-d/fa42a46853ab54725772ee4c34ff9b1d to your computer and use it in GitHub Desktop.
Usefull docker commands
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
| * Stop container ‘CONTAINER_NAME’ if exists | |
| docker ps -aq --filter "name=CONTAINER_NAME" --filter status=running | grep -q . && docker stop CONTAINER_NAME || echo Container not found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment