Help us shape the future of Go! Take the 2026 Go Developer Survey

docker

package
v1.20.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultShmSize = "1g"

DefaultShmSize is the /dev/shm given to a testing image that does not set its own. Docker's default is 64 MB, which Postgres parallel queries exhaust: every parallel worker opens a segment in /dev/shm, and a worker that cannot resize its segment fails the query with `SQLSTATE 53100`. A killed worker also leaves its segment behind, so a container that keeps running slowly fills its 64 MB and every later query fails while it does.

Variables

View Source
var TestPortUsing = false

Used by TestContainer, to simulate the port is using.

Functions

func ExposedPort

func ExposedPort(exposedPorts []string, port string) string

func ImageToCommand

func ImageToCommand(image *docker.Image) (command string, exposedPorts []string)

func IsPortUsing

func IsPortUsing(port int) bool

func ValidPort

func ValidPort() int

Types

This section is empty.

Jump to

Keyboard shortcuts

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