Affected by GO-2024-2659
and 5 other vulnerabilities
GO-2024-2659 : Data exfiltration from internal networks in github.com/docker/docker
GO-2026-4883 : Moby has an Off-by-one error in its plugin privilege validation in github.com/docker/docker
GO-2026-4887 : Moby has AuthZ plugin bypass when provided oversized request bodies in github.com/docker/docker
GO-2026-5617 : Docker: Race condition in docker cp allows bind mount redirection to host path in github.com/docker/docker
GO-2026-5668 : Docker: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap in github.com/docker/docker
GO-2026-5746 : Docker: `PUT /containers/{id}/archive` executes container binary on the host in github.com/docker/docker
Discover Packages
github.com/docker/docker
cmd
dockerd
trap
package
Version:
v26.0.0-rc2+incompatible
Opens a new window with list of versions in this module.
Published: Mar 7, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 146
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
func Trap(cleanup func())
Trap sets up a simplified signal "trap", appropriate for common
behavior expected from a vanilla unix command-line tool in general
(and the Docker engine in particular).
The first time a SIGINT or SIGTERM signal is received, `cleanup` is called in
a new goroutine.
If SIGINT or SIGTERM are received 3 times, the process is terminated
immediately with an exit code of 128 + the signal number.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.