Skip to content
This repository was archived by the owner on Sep 3, 2018. It is now read-only.

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Check if the process is running inside a Docker container

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages