// CommitContainer Commit a container as an image
CommitContainer Commit a container as an image
// CommitContainer Commit a container as an image
func CommitContainer(ctx context.Context, dockerClient *client.Client, containerName string, reference string) error {
	_, err := dockerClient.ContainerCommit(ctx, containerName, types.ContainerCommitOptions{Reference: reference})
	if err != nil {
		return err
	}
	return nil
}
func CommitContainer ( ctx context . Context , dockerClient * client . Client , containerName string , reference string ) error { _ , err := dockerClient . ContainerCommit ( ctx , containerName , types . ContainerCommitOptions { Reference : reference } ) if err != nil { return err } return nil }
CommitContainer Commit a container as an image
CommitContainer Commit a container as an image