Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DockerDefaultEntrypoint = []string{""}
To remove the entrypoint and reset it back to the docker default, return this value for Entrypoint. The docker commit API recognizes this value specially to reset the entrypoint.
Functions ¶
func AlterEntrypoint ¶
func AlterEntrypointImg ¶ added in v0.3.0
func AlterEntrypointImg( ctx context.Context, image string, cb func(cur []string) (*NewEntrypoint, error), ) (string, error)
AlterEntrypointImg has the same signature as AlterEntrypoint but uses "img" under the hood to perform the entrypoint modification.
Types ¶
type NewEntrypoint ¶
type NewEntrypoint struct { NewImage string Entrypoint []string InjectFiles map[string]InjectFile }
Click to show internal directories.
Click to hide internal directories.