IsDocker

package module
v0.0.0-...-4503694 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2017 License: MIT Imports: 3 Imported by: 0

README

IsDocker Build Status

Check if the process is running inside a Docker container

How to use it

package main

import (
	"fmt"
	. "github.com/dlion/IsDocker"
)

func main() {
	if IsDocker() {
		fmt.Println("Info: Running inside a docker container")
	}
}

Test

go test

Author

Domenico Luciani

https://domenicoluciani.com

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDocker

func IsDocker() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL