Skip to main content
Module

x/is/docker.ts>isDocker

Detect the running environment and context of the current script
Latest
function isDocker
import { isDocker } from "https://deno.land/x/is@v0.6.0/docker.ts";

Return true if the process is running inside a Docker container.

Requires the --allow-read flag.

Returns

Promise<boolean>