mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
show error when running dockershim
The error returned when running the dockershim is not checked. When running dockerless, we should show the existing error.
This commit is contained in:
parent
875f31e988
commit
38a1d34401
@ -316,7 +316,7 @@ func PreInitRuntimeService(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
|
|||||||
|
|
||||||
switch containerRuntime {
|
switch containerRuntime {
|
||||||
case kubetypes.DockerContainerRuntime:
|
case kubetypes.DockerContainerRuntime:
|
||||||
runDockershim(
|
if err := runDockershim(
|
||||||
kubeCfg,
|
kubeCfg,
|
||||||
kubeDeps,
|
kubeDeps,
|
||||||
crOptions,
|
crOptions,
|
||||||
@ -324,7 +324,9 @@ func PreInitRuntimeService(kubeCfg *kubeletconfiginternal.KubeletConfiguration,
|
|||||||
remoteRuntimeEndpoint,
|
remoteRuntimeEndpoint,
|
||||||
remoteImageEndpoint,
|
remoteImageEndpoint,
|
||||||
nonMasqueradeCIDR,
|
nonMasqueradeCIDR,
|
||||||
)
|
); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
case kubetypes.RemoteContainerRuntime:
|
case kubetypes.RemoteContainerRuntime:
|
||||||
// No-op.
|
// No-op.
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user