updated to return docker info when /.dockerenv file exists
Description
I'm a heavy docker user and I was embarrassed about I had to create Dockerfile or docker...yml file
for all the directories that I have to move around.
When docker container is created, /.dockerenv file is created at the same time.
This file would be good for checking whether an user is in docker container
user must connect /usr/var/docker.sock when run the container
e.g. docker run -v /usr/var/docker.sock:/usr/var/docker.sock
updated to return docker info when /.dockerenv file exists
Description
I'm a heavy docker user and I was embarrassed about I had to create Dockerfile or docker...yml file for all the directories that I have to move around.
When docker container is created, /.dockerenv file is created at the same time. This file would be good for checking whether an user is in docker container