mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Review comments
Signed-off-by: Jean Rouge <rougej+github@gmail.com>
This commit is contained in:
parent
1908a0ce04
commit
5e3f3b35e0
@ -177,7 +177,10 @@ func (ds *dockerService) CreateContainer(_ context.Context, r *runtimeapi.Create
|
||||
containerID := createResp.ID
|
||||
|
||||
if cleanupInfo != nil {
|
||||
// save it for when the container starts or gets removed
|
||||
// we don't perform the clean up just yet at that could destroy information
|
||||
// needed for the container to start (e.g. Windows credentials stored in
|
||||
// registry keys); instead, we'll clean up after the container successfully
|
||||
// starts or gets removed
|
||||
ds.containerCleanupInfos[containerID] = cleanupInfo
|
||||
}
|
||||
return &runtimeapi.CreateContainerResponse{ContainerId: containerID}, nil
|
||||
|
Loading…
Reference in New Issue
Block a user