Created
May 6, 2020 11:00
-
-
Save emilioSp/000315e66ef54b79567b20a4842184b1 to your computer and use it in GitHub Desktop.
Start container only if it is not already running
This file contains 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
docker ps --format '{{.Names}}' | egrep '^container_name$' || docker run --rm --detach --name container_name org/container_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment