MCPcopy Index your code
hub / github.com/docker/cli / Write

Method Write

cli/command/container/create.go:186–195  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

184}
185
186func (cid *cidFile) Write(id string) error {
187 if cid.file == nil {
188 return nil
189 }
190 if _, err := cid.file.WriteString(id); err != nil {
191 return fmt.Errorf("failed to write the container ID (%s) to file: %w", id, err)
192 }
193 cid.written = true
194 return nil
195}
196
197func newCIDFile(cidPath string) (*cidFile, error) {
198 if cidPath == "" {

Callers 10

RunStatsFunction · 0.45
diffFormatWriteFunction · 0.45
createContainerFunction · 0.45
runPsFunction · 0.45
statsFormatWriteFunction · 0.45
formatWriteFunction · 0.45
formatWriteFunction · 0.45
inspectFormatWriteFunction · 0.45

Calls

no outgoing calls

Tested by 2