Affected by GO-2024-3304
and 3 other vulnerabilities
GO-2024-3304: Moby Race Condition vulnerability in github.com/moby/moby
GO-2024-3305: Moby Race Condition vulnerability in github.com/moby/moby
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
package
Version:
v23.0.5+incompatible
Opens a new window with list of versions in this module.
Published: Apr 26, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func IsRunningInContainer() bool
IsRunningInContainer returns whether the test is running inside a container.
func SetupTestOSContext(t *testing.T) func()
SetupTestOSContext joins a new network namespace, and returns its associated
teardown function.
Example usage:
defer SetupTestOSContext(t)()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.