0

Is there a way to programatically / using bash scripts to identify that we are running inside a Windows based Docker Container (namely, microsoft/iis)?

Samuel
  • 33
  • 7
  • I don't know what reason is behind this question, but maybe when You run container just pass this info as env? https://docs.docker.com/engine/reference/commandline/run/ – barat Mar 02 '17 at 14:57
  • I am creating a tool that will run inside of people's container (which I don't control) and I need to know if my application will be running inside a Docker Container to perform my operations, that's the reason. – Samuel Mar 02 '17 at 17:52
  • Do you want to distinguish between "Docker" and "not Docker" or do you want to distinguish between "Windows Docker" and "non-Windows Docker"? – Harry Johnston Mar 02 '17 at 22:58
  • Distribution would be platform independent, so not a different app for both platforms. – Samuel Mar 03 '17 at 11:08
  • I'd like something like: http://stackoverflow.com/questions/20010199/determining-if-a-process-runs-inside-lxc-docker – Samuel Mar 03 '17 at 11:09

0 Answers0