mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #42772 from timchenxiaoyu/sometypo
Automatic merge from submit-queue (batch tested with PRs 44097, 42772, 43880, 44031, 44066) fix some typo fix some typo **Release note**: ```NONE ```
This commit is contained in:
commit
62c7c66ff4
@ -271,7 +271,7 @@ func getUserFromImageUser(imageUser string) (*int64, string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// See #33189. If the previous attempt to create a sandbox container name FOO
|
// See #33189. If the previous attempt to create a sandbox container name FOO
|
||||||
// failed due to "device or resource busy", it is possbile that docker did
|
// failed due to "device or resource busy", it is possible that docker did
|
||||||
// not clean up properly and has inconsistent internal state. Docker would
|
// not clean up properly and has inconsistent internal state. Docker would
|
||||||
// not report the existence of FOO, but would complain if user wants to
|
// not report the existence of FOO, but would complain if user wants to
|
||||||
// create a new container named FOO. To work around this, we parse the error
|
// create a new container named FOO. To work around this, we parse the error
|
||||||
@ -280,7 +280,7 @@ func getUserFromImageUser(imageUser string) (*int64, string) {
|
|||||||
// See #40443. Sometimes even removal may fail with "no such container" error.
|
// See #40443. Sometimes even removal may fail with "no such container" error.
|
||||||
// In that case we have to create the container with a randomized name.
|
// In that case we have to create the container with a randomized name.
|
||||||
// TODO(random-liu): Remove this work around after docker 1.11 is deprecated.
|
// TODO(random-liu): Remove this work around after docker 1.11 is deprecated.
|
||||||
// TODO(#33189): Monitor the tests to see if the fix is sufficent.
|
// TODO(#33189): Monitor the tests to see if the fix is sufficient.
|
||||||
func recoverFromCreationConflictIfNeeded(client dockertools.DockerInterface, createConfig dockertypes.ContainerCreateConfig, err error) (*dockertypes.ContainerCreateResponse, error) {
|
func recoverFromCreationConflictIfNeeded(client dockertools.DockerInterface, createConfig dockertypes.ContainerCreateConfig, err error) (*dockertypes.ContainerCreateResponse, error) {
|
||||||
matches := conflictRE.FindStringSubmatch(err.Error())
|
matches := conflictRE.FindStringSubmatch(err.Error())
|
||||||
if len(matches) != 2 {
|
if len(matches) != 2 {
|
||||||
|
Loading…
Reference in New Issue
Block a user