MCPcopy
hub / github.com/containerd/containerd / Create

Method Create

client/containerstore.go:112–122  ·  view source on GitHub ↗
(ctx context.Context, container containers.Container)

Source from the content-addressed store, hash-verified

110}
111
112func (r *remoteContainers) Create(ctx context.Context, container containers.Container) (containers.Container, error) {
113 created, err := r.client.Create(ctx, &containersapi.CreateContainerRequest{
114 Container: containerToProto(&container),
115 })
116 if err != nil {
117 return containers.Container{}, errgrpc.ToNative(err)
118 }
119
120 return containerFromProto(created.Container), nil
121
122}
123
124func (r *remoteContainers) Update(ctx context.Context, container containers.Container, fieldpaths ...string) (containers.Container, error) {
125 var updateMask *ptypes.FieldMask

Callers

nothing calls this directly

Calls 3

containerToProtoFunction · 0.70
containerFromProtoFunction · 0.70
CreateMethod · 0.65

Tested by

no test coverage detected