MCPcopy
hub / github.com/docker/compose / Commit

Method Commit

pkg/api/api.go:145–145  ·  view source on GitHub ↗

Create a new image from a service container's changes

(ctx context.Context, projectName string, options CommitOptions)

Source from the content-addressed store, hash-verified

143 Export(ctx context.Context, projectName string, options ExportOptions) error
144 // Create a new image from a service container's changes
145 Commit(ctx context.Context, projectName string, options CommitOptions) error
146 // Generate generates a Compose Project from existing containers
147 Generate(ctx context.Context, options GenerateOptions) (*types.Project, error)
148 // Volumes executes the equivalent to a `docker volume ls`

Callers 2

PushFunction · 0.65
runCommitFunction · 0.65

Implementers 3

MockComposepkg/mocks/mock_docker_compose_api.go
MockComposeMockRecorderpkg/mocks/mock_docker_compose_api.go
composeServicepkg/compose/compose.go

Calls

no outgoing calls

Tested by

no test coverage detected