How to check if running inside Docker?
To check if you are inside a docker container, run the command
1 |
cat /proc/1/cgroup | grep --color docker |
If you get some result with docker in it, you are inside a docker container.
Example
See Docker