From 3774185c64b45e8807139be5e9bfc1abd358ee13 Mon Sep 17 00:00:00 2001 From: xHozey Date: Fri, 6 Feb 2026 12:16:47 +0100 Subject: [PATCH] docs(client): document non-nil Config requirement for ContainerCreate --- client/client.container.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/client.container.go b/client/client.container.go index 17001d8e..aa4a0d2f 100644 --- a/client/client.container.go +++ b/client/client.container.go @@ -10,6 +10,9 @@ import ( ) // ContainerCreate creates a new container. +// +// Note: options.Config must not be nil. The SDK assumes a valid container +// configuration and does not perform nil checks. func (c *sdkClient) ContainerCreate(ctx context.Context, options client.ContainerCreateOptions) (client.ContainerCreateResult, error) { // Add the labels that identify this as a container created by the SDK. AddSDKLabels(options.Config.Labels)