Created
September 5, 2019 11:11
-
-
Save MarekVigas/e5bc3f62200e1af61f9d87b43c30a818 to your computer and use it in GitHub Desktop.
Check if inside docker container
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
#!/bin/bash | |
if [ -f /.dockerenv ]; then | |
echo "I'm inside matrix ;("; | |
else | |
echo "I'm living in real world!"; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment