\begin{quote}
Check if the process is running inside a Docker container \end{quote}
\hypertarget{md_sfcode_node_modules_is_docker_readme_autotoc_md13090}{}\doxysection{Install}\label{md_sfcode_node_modules_is_docker_readme_autotoc_md13090}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install is-\/docker }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_docker_readme_autotoc_md13091}{}\doxysection{Usage}\label{md_sfcode_node_modules_is_docker_readme_autotoc_md13091}

\begin{DoxyCode}{0}
\DoxyCodeLine{const isDocker = require('is-\/docker');}
\DoxyCodeLine{}
\DoxyCodeLine{if (isDocker()) \{}
\DoxyCodeLine{    console.log('Running inside a Docker container');}
\DoxyCodeLine{\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_docker_readme_autotoc_md13092}{}\doxysection{CLI}\label{md_sfcode_node_modules_is_docker_readme_autotoc_md13092}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ is-\/docker }

\end{DoxyCode}


Exits with code 0 if inside a Docker container and 2 if not. 