env

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasDockerInternalHostAddress added in v0.21.20

func HasDockerInternalHostAddress() bool

Docker exposes an internal address for containers to communicate with the host. It is only available on Docker Desktop and indicates the container is being run by Docker Desktop on macOS or Windows. https://docs.docker.com/desktop/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host

func InDocker

func InDocker() bool

Returns true if the CLI is running inside the official docker release image.

Types

This section is empty.

Jump to

Keyboard shortcuts

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