kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.49k stars 4.89k forks source link

minikube start fails (maybe due to proxy settings) #14509

Closed ikamensh closed 2 years ago

ikamensh commented 2 years ago

What Happened?

I was unable to run minikube start while I had "Automatic Proxy Configuration" set in my network settings (macos). Error messages were not informative. Disabling it helped.

πŸ”₯  Creating hyperkit VM (CPUs=2, Memory=6000MB, Disk=20000MB) ...
❗  Local proxy ignored: not passing HTTP_PROXY=http://localhost:3128 to docker env.
❗  Local proxy ignored: not passing HTTPS_PROXY=http://localhost:3128 to docker env.
❗  Local proxy ignored: not passing HTTP_PROXY=http://localhost:3128 to docker env.
❗  Local proxy ignored: not passing HTTPS_PROXY=http://localhost:3128 to docker env.
😿  Failed to start hyperkit VM. Running "minikube delete" may fix it: creating host: create: Error creating machine: Error in driver during machine creation: IP address never found in dhcp leases file Temporary error: open /var/db/dhcpd_leases: no such file or directory

❌  Exiting due to GUEST_PROVISION: Failed to start host: creating host: create: Error creating machine: Error in driver during machine creation: IP address never found in dhcp leases file Temporary error: open /var/db/dhcpd_leases: no such file or directory

Attach the log file

Operating System

macOS (Default)

Driver

HyperKit

spowelljr commented 2 years ago

Hi @ikamensh, we have a page in our documentation related to using minikube with proxies, does any of the info there help?

https://minikube.sigs.k8s.io/docs/handbook/vpn_and_proxy/

klaases commented 2 years ago

Hi @ikamensh – did you have a chance to review the documentation?

Please feel free to re-open the issue by commenting with /reopen. This issue will be closed as additional information was unavailable and some time has passed.

Additional information that may be helpful:

Thank you for sharing your experience!

CallisteH commented 5 months ago

Hi everyone, something similar here. Minikube car run, but I can't use proxy to pull images.

My proxy is http://127.0.0.1:9000

my minikube start :

export HTTPS_PROXY=http://127.0.0.1:9000
export HTTP_PROXY=http://127.0.0.1:9000
export NO_PROXY=10.96.0.0/12,192.168.59.0/24,192.168.49.0/24,192.168.39.0/24,$NO_PROXY

minikube start

I got this last start log

* ==> Last Start <==
* Log file created at: 2024/06/05 15:55:47
Running on machine: LAPTOP-VQFGNTFI
Binary: Built with gc go1.21.3 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0605 15:55:47.547005  281582 out.go:296] Setting OutFile to fd 1 ...
I0605 15:55:47.547385  281582 out.go:309] Setting ErrFile to fd 2...
I0605 15:55:47.547693  281582 root.go:338] Updating PATH: /home/chanriat/.minikube/bin
W0605 15:55:47.547779  281582 root.go:314] Error reading config file at /home/chanriat/.minikube/config/config.json: open /home/chanriat/.minikube/config/config.json: no such file or directory
I0605 15:55:47.547911  281582 out.go:303] Setting JSON to false
I0605 15:55:47.548550  281582 start.go:128] hostinfo: {"hostname":"LAPTOP-VQFGNTFI","uptime":11241,"bootTime":1717584507,"procs":82,"os":"linux","platform":"ubuntu","platformFamily":"debian","platformVersion":"22.04","kernelVersion":"5.15.146.1-microsoft-standard-WSL2","kernelArch":"x86_64","virtualizationSystem":"","virtualizationRole":"guest","hostId":"8647c442-01ec-ea7e-a324-6c77636d23d1"}
I0605 15:55:47.548585  281582 start.go:138] virtualization:  guest
I0605 15:55:47.550919  281582 out.go:177] πŸ˜„  minikube v1.32.0 on Ubuntu 22.04 (amd64)
I0605 15:55:47.553442  281582 notify.go:220] Checking for updates...
I0605 15:55:47.553719  281582 config.go:182] Loaded profile config "minikube": Driver=docker, ContainerRuntime=docker, KubernetesVersion=v1.28.3
I0605 15:55:47.553778  281582 driver.go:378] Setting default libvirt URI to qemu:///system
I0605 15:55:47.615455  281582 docker.go:122] docker version: linux-23.0.0:Docker Engine - Community
I0605 15:55:47.615520  281582 cli_runner.go:164] Run: docker system info --format "{{json .}}"
I0605 15:55:47.716446  281582 info.go:266] docker info: {ID:f8da00b5-de61-4d7f-b186-69fa533c41e4 Containers:13 ContainersRunning:0 ContainersPaused:0 ContainersStopped:13 Images:20 Driver:overlay2 DriverStatus:[[Backing Filesystem extfs] [Supports d_type true] [Using metacopy false] [Native Overlay Diff true] [userxattr false]] SystemStatus:<nil> Plugins:{Volume:[local] Network:[bridge host ipvlan macvlan null overlay] Authorization:<nil> Log:[awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog]} MemoryLimit:true SwapLimit:true KernelMemory:false KernelMemoryTCP:true CPUCfsPeriod:true CPUCfsQuota:true CPUShares:true CPUSet:true PidsLimit:true IPv4Forwarding:true BridgeNfIptables:true BridgeNfIP6Tables:true Debug:true NFd:38 OomKillDisable:true NGoroutines:150 SystemTime:2024-06-05 15:55:47.707253325 +0200 CEST LoggingDriver:json-file CgroupDriver:cgroupfs NEventsListener:0 KernelVersion:5.15.146.1-microsoft-standard-WSL2 OperatingSystem:Ubuntu 22.04.4 LTS OSType:linux Architecture:x86_64 IndexServerAddress:https://index.docker.io/v1/ RegistryConfig:{AllowNondistributableArtifactsCIDRs:[] AllowNondistributableArtifactsHostnames:[] InsecureRegistryCIDRs:[127.0.0.0/8] IndexConfigs:{DockerIo:{Name:docker.io Mirrors:[http://registry.sf.bds.atos.net/] Secure:true Official:true}} Mirrors:[http://registry.sf.bds.atos.net/]} NCPU:8 MemTotal:8332058624 GenericResources:<nil> DockerRootDir:/var/lib/docker HTTPProxy:http://127.0.0.1:9000 HTTPSProxy:http://127.0.0.1:9000 NoProxy: Name:LAPTOP-VQFGNTFI Labels:[] ExperimentalBuild:false ServerVersion:23.0.0 ClusterStore: ClusterAdvertise: Runtimes:{Runc:{Path:runc}} DefaultRuntime:runc Swarm:{NodeID:4o8sux5fce5vnpl98esfw6snx NodeAddr:192.168.62.112 LocalNodeState:active ControlAvailable:true Error: RemoteManagers:[map[Addr:192.168.62.112:2377 NodeID:4o8sux5fce5vnpl98esfw6snx]]} LiveRestoreEnabled:false Isolation: InitBinary:docker-init ContainerdCommit:{ID:31aa4358a36870b21a992d3ad2bef29e1d693bec Expected:31aa4358a36870b21a992d3ad2bef29e1d693bec} RuncCommit:{ID:v1.1.4-0-g5fd4c4d Expected:v1.1.4-0-g5fd4c4d} InitCommit:{ID:de40ad0 Expected:de40ad0} SecurityOptions:[name=seccomp,profile=builtin] ProductLicense: Warnings:[WARNING: No blkio throttle.read_bps_device support WARNING: No blkio throttle.write_bps_device support WARNING: No blkio throttle.read_iops_device support WARNING: No blkio throttle.write_iops_device support] ServerErrors:[] ClientInfo:{Debug:false Plugins:[map[Name:buildx Path:/usr/libexec/docker/cli-plugins/docker-buildx SchemaVersion:0.1.0 ShortDescription:Docker Buildx Vendor:Docker Inc. Version:v0.10.2] map[Name:compose Path:/usr/libexec/docker/cli-plugins/docker-compose SchemaVersion:0.1.0 ShortDescription:Docker Compose Vendor:Docker Inc. Version:v2.15.1] map[Name:scan Path:/usr/libexec/docker/cli-plugins/docker-scan SchemaVersion:0.1.0 ShortDescription:Docker Scan Vendor:Docker Inc. Version:v0.23.0]] Warnings:<nil>}}
I0605 15:55:47.716512  281582 docker.go:295] overlay module found
I0605 15:55:47.719386  281582 out.go:177] ✨  Using the docker driver based on existing profile
I0605 15:55:47.720898  281582 start.go:298] selected driver: docker
I0605 15:55:47.720908  281582 start.go:902] validating driver "docker" against &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.42@sha256:d35ac07dfda971cabee05e0deca8aeac772f885a5348e1a0c0b0a36db20fcfc0 Memory:2200 CPUs:2 DiskSize:20000 VMDriver: Driver:docker HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[HTTPS_PROXY HTTP_PROXY] ContainerVolumeMounts:[] InsecureRegistry:[10.0.0.0/24] RegistryMirror:[] HostOnlyCIDR:192.168.59.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false KVMNUMACount:1 APIServerPort:0 DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio SSHIPAddress: SSHUser:root SSHKey: SSHPort:22 KubernetesConfig:{KubernetesVersion:v1.28.3 ClusterName:minikube Namespace:default APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin:cni FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: RegistryAliases: ExtraOptions:[] ShouldLoadCachedImages:true EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name: IP:192.168.49.2 Port:8443 KubernetesVersion:v1.28.3 ContainerRuntime:docker ControlPlane:true Worker:true}] Addons:map[default-storageclass:true registry:true storage-provisioner:true] CustomAddonImages:map[] CustomAddonRegistries:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ScheduledStop:<nil> ExposedPorts:[] ListenAddress: Network: Subnet: MultiNodeRequested:false ExtraDisks:0 CertExpiration:26280h0m0s Mount:false MountString:/home/chanriat:/minikube-host Mount9PVersion:9p2000.L MountGID:docker MountIP: MountMSize:262144 MountOptions:[] MountPort:0 MountType:9p MountUID:docker BinaryMirror: DisableOptimizations:false DisableMetrics:false CustomQemuFirmwarePath: SocketVMnetClientPath: SocketVMnetPath: StaticIP: SSHAuthSock: SSHAgentPID:0 AutoPauseInterval:1m0s GPUs:}
I0605 15:55:47.720977  281582 start.go:913] status for docker: {Installed:true Healthy:true Running:false NeedsImprovement:false Error:<nil> Reason: Fix: Doc: Version:}
I0605 15:55:47.721057  281582 cli_runner.go:164] Run: docker system info --format "{{json .}}"
I0605 15:55:47.822288  281582 info.go:266] docker info: {ID:f8da00b5-de61-4d7f-b186-69fa533c41e4 Containers:13 ContainersRunning:0 ContainersPaused:0 ContainersStopped:13 Images:20 Driver:overlay2 DriverStatus:[[Backing Filesystem extfs] [Supports d_type true] [Using metacopy false] [Native Overlay Diff true] [userxattr false]] SystemStatus:<nil> Plugins:{Volume:[local] Network:[bridge host ipvlan macvlan null overlay] Authorization:<nil> Log:[awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog]} MemoryLimit:true SwapLimit:true KernelMemory:false KernelMemoryTCP:true CPUCfsPeriod:true CPUCfsQuota:true CPUShares:true CPUSet:true PidsLimit:true IPv4Forwarding:true BridgeNfIptables:true BridgeNfIP6Tables:true Debug:true NFd:38 OomKillDisable:true NGoroutines:150 SystemTime:2024-06-05 15:55:47.8139589 +0200 CEST LoggingDriver:json-file CgroupDriver:cgroupfs NEventsListener:0 KernelVersion:5.15.146.1-microsoft-standard-WSL2 OperatingSystem:Ubuntu 22.04.4 LTS OSType:linux Architecture:x86_64 IndexServerAddress:https://index.docker.io/v1/ RegistryConfig:{AllowNondistributableArtifactsCIDRs:[] AllowNondistributableArtifactsHostnames:[] InsecureRegistryCIDRs:[127.0.0.0/8] IndexConfigs:{DockerIo:{Name:docker.io Mirrors:[http://registry.sf.bds.atos.net/] Secure:true Official:true}} Mirrors:[http://registry.sf.bds.atos.net/]} NCPU:8 MemTotal:8332058624 GenericResources:<nil> DockerRootDir:/var/lib/docker HTTPProxy:http://127.0.0.1:9000 HTTPSProxy:http://127.0.0.1:9000 NoProxy: Name:LAPTOP-VQFGNTFI Labels:[] ExperimentalBuild:false ServerVersion:23.0.0 ClusterStore: ClusterAdvertise: Runtimes:{Runc:{Path:runc}} DefaultRuntime:runc Swarm:{NodeID:4o8sux5fce5vnpl98esfw6snx NodeAddr:192.168.62.112 LocalNodeState:active ControlAvailable:true Error: RemoteManagers:[map[Addr:192.168.62.112:2377 NodeID:4o8sux5fce5vnpl98esfw6snx]]} LiveRestoreEnabled:false Isolation: InitBinary:docker-init ContainerdCommit:{ID:31aa4358a36870b21a992d3ad2bef29e1d693bec Expected:31aa4358a36870b21a992d3ad2bef29e1d693bec} RuncCommit:{ID:v1.1.4-0-g5fd4c4d Expected:v1.1.4-0-g5fd4c4d} InitCommit:{ID:de40ad0 Expected:de40ad0} SecurityOptions:[name=seccomp,profile=builtin] ProductLicense: Warnings:[WARNING: No blkio throttle.read_bps_device support WARNING: No blkio throttle.write_bps_device support WARNING: No blkio throttle.read_iops_device support WARNING: No blkio throttle.write_iops_device support] ServerErrors:[] ClientInfo:{Debug:false Plugins:[map[Name:buildx Path:/usr/libexec/docker/cli-plugins/docker-buildx SchemaVersion:0.1.0 ShortDescription:Docker Buildx Vendor:Docker Inc. Version:v0.10.2] map[Name:compose Path:/usr/libexec/docker/cli-plugins/docker-compose SchemaVersion:0.1.0 ShortDescription:Docker Compose Vendor:Docker Inc. Version:v2.15.1] map[Name:scan Path:/usr/libexec/docker/cli-plugins/docker-scan SchemaVersion:0.1.0 ShortDescription:Docker Scan Vendor:Docker Inc. Version:v0.23.0]] Warnings:<nil>}}
I0605 15:55:47.822747  281582 cni.go:84] Creating CNI manager for ""
I0605 15:55:47.822765  281582 cni.go:158] "docker" driver + "docker" container runtime found on kubernetes v1.24+, recommending bridge
I0605 15:55:47.822776  281582 start_flags.go:323] config:
{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage:gcr.io/k8s-minikube/kicbase:v0.0.42@sha256:d35ac07dfda971cabee05e0deca8aeac772f885a5348e1a0c0b0a36db20fcfc0 Memory:2200 CPUs:2 DiskSize:20000 VMDriver: Driver:docker HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[HTTPS_PROXY HTTP_PROXY] ContainerVolumeMounts:[] InsecureRegistry:[10.0.0.0/24] RegistryMirror:[] HostOnlyCIDR:192.168.59.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false KVMNUMACount:1 APIServerPort:0 DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio SSHIPAddress: SSHUser:root SSHKey: SSHPort:22 KubernetesConfig:{KubernetesVersion:v1.28.3 ClusterName:minikube Namespace:default APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin:cni FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: CustomIngressCert: RegistryAliases: ExtraOptions:[] ShouldLoadCachedImages:true EnableDefaultCNI:false CNI: NodeIP: NodePort:8443 NodeName:} Nodes:[{Name: IP:192.168.49.2 Port:8443 KubernetesVersion:v1.28.3 ContainerRuntime:docker ControlPlane:true Worker:true}] Addons:map[default-storageclass:true registry:true storage-provisioner:true] CustomAddonImages:map[] CustomAddonRegistries:map[] VerifyComponents:map[apiserver:true system_pods:true] StartHostTimeout:6m0s ScheduledStop:<nil> ExposedPorts:[] ListenAddress: Network: Subnet: MultiNodeRequested:false ExtraDisks:0 CertExpiration:26280h0m0s Mount:false MountString:/home/chanriat:/minikube-host Mount9PVersion:9p2000.L MountGID:docker MountIP: MountMSize:262144 MountOptions:[] MountPort:0 MountType:9p MountUID:docker BinaryMirror: DisableOptimizations:false DisableMetrics:false CustomQemuFirmwarePath: SocketVMnetClientPath: SocketVMnetPath: StaticIP: SSHAuthSock: SSHAgentPID:0 AutoPauseInterval:1m0s GPUs:}
W0605 15:55:47.822860  281582 out.go:239] ❗  Local proxy ignored: not passing HTTP_PROXY=http://127.0.0.1:9000 to docker env.
W0605 15:55:47.822944  281582 out.go:239] ❗  Local proxy ignored: not passing HTTPS_PROXY=http://127.0.0.1:9000 to docker env.
W0605 15:55:47.823078  281582 out.go:239] ❗  Local proxy ignored: not passing HTTP_PROXY=http://127.0.0.1:9000 to docker env.
W0605 15:55:47.823217  281582 out.go:239] ❗  Local proxy ignored: not passing HTTPS_PROXY=http://127.0.0.1:9000 to docker env.
I0605 15:55:47.826718  281582 out.go:177] πŸ‘  Starting control plane node minikube in cluster minikube
I0605 15:55:47.828148  281582 cache.go:121] Beginning downloading kic base image for docker with docker
I0605 15:55:47.829500  281582 out.go:177] 🚜  Pulling base image ...
I0605 15:55:47.830838  281582 preload.go:132] Checking if preload exists for k8s version v1.28.3 and runtime docker
I0605 15:55:47.830867  281582 preload.go:148] Found local preload: /home/chanriat/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v18-v1.28.3-docker-overlay2-amd64.tar.lz4
I0605 15:55:47.830872  281582 cache.go:56] Caching tarball of preloaded images
I0605 15:55:47.830935  281582 image.go:79] Checking for gcr.io/k8s-minikube/kicbase:v0.0.42@sha256:d35ac07dfda971cabee05e0deca8aeac772f885a5348e1a0c0b0a36db20fcfc0 in local docker daemon
I0605 15:55:47.830965  281582 preload.go:174] Found /home/chanriat/.minikube/cache/preloaded-tarball/preloaded-images-k8s-v18-v1.28.3-docker-overlay2-amd64.tar.lz4 in cache, skipping download
I0605 15:55:47.830972  281582 cache.go:59] Finished verifying existence of preloaded tar for  v1.28.3 on docker
I0605 15:55:47.831036  281582 profile.go:148] Saving config to /home/chanriat/.minikube/profiles/minikube/config.json ...
I0605 15:55:47.888655  281582 image.go:83] Found gcr.io/k8s-minikube/kicbase:v0.0.42@sha256:d35ac07dfda971cabee05e0deca8aeac772f885a5348e1a0c0b0a36db20fcfc0 in local docker daemon, skipping pull
I0605 15:55:47.888668  281582 cache.go:144] gcr.io/k8s-minikube/kicbase:v0.0.42@sha256:d35ac07dfda971cabee05e0deca8aeac772f885a5348e1a0c0b0a36db20fcfc0 exists in daemon, skipping load
I0605 15:55:47.888697  281582 cache.go:194] Successfully downloaded all kic artifacts
I0605 15:55:47.888720  281582 start.go:365] acquiring machines lock for minikube: {Name:mkf61c0de6ee0ab04aaf8a30010a7599d410a5ae Clock:{} Delay:500ms Timeout:10m0s Cancel:<nil>}
I0605 15:55:47.888792  281582 start.go:369] acquired machines lock for "minikube" in 58.9Β΅s
I0605 15:55:47.888805  281582 start.go:96] Skipping create...Using existing machine configuration
I0605 15:55:47.888808  281582 fix.go:54] fixHost starting: 
I0605 15:55:47.888970  281582 cli_runner.go:164] Run: docker container inspect minikube --format={{.State.Status}}
I0605 15:55:47.942700  281582 fix.go:102] recreateIfNeeded on minikube: state=Stopped err=<nil>
W0605 15:55:47.942714  281582 fix.go:128] unexpected machine state, will restart: <nil>
I0605 15:55:47.944473  281582 out.go:177] πŸ”„  Restarting existing docker container for "minikube" ...
I0605 15:55:47.946402  281582 cli_runner.go:164] Run: docker start minikube
I0605 15:55:48.540429  281582 cli_runner.go:164] Run: docker container inspect minikube --format={{.State.Status}}
I0605 15:55:48.606777  281582 kic.go:430] container "minikube" state is running.
I0605 15:55:48.607052  281582 cli_runner.go:164] Run: docker container inspect -f "{{range .NetworkSettings.Networks}}{{.IPAddress}},{{.GlobalIPv6Address}}{{end}}" minikube
I0605 15:55:48.668579  281582 profile.go:148] Saving config to /home/chanriat/.minikube/profiles/minikube/config.json ...
W0605 15:55:48.668908  281582 out.go:239] ❗  Local proxy ignored: not passing HTTP_PROXY=http://127.0.0.1:9000 to docker env.
W0605 15:55:48.668975  281582 out.go:239] ❗  Local proxy ignored: not passing HTTPS_PROXY=http://127.0.0.1:9000 to docker env.
W0605 15:55:48.669057  281582 out.go:239] ❗  Local proxy ignored: not passing HTTP_PROXY=http://127.0.0.1:9000 to docker env.
W0605 15:55:48.669140  281582 out.go:239] ❗  Local proxy ignored: not passing HTTPS_PROXY=http://127.0.0.1:9000 to docker env.
I0605 15:55:48.669259  281582 machine.go:88] provisioning docker machine ...
I0605 15:55:48.669315  281582 ubuntu.go:169] provisioning hostname "minikube"
I0605 15:55:48.669498  281582 cli_runner.go:164] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0605 15:55:48.733616  281582 main.go:141] libmachine: Using SSH client type: native
I0605 15:55:48.733922  281582 main.go:141] libmachine: &{{{<nil> 0 [] [] []} docker [0x808a40] 0x80b720 <nil>  [] 0s} 127.0.0.1 60748 <nil> <nil>}
I0605 15:55:48.733929  281582 main.go:141] libmachine: About to run SSH command:
sudo hostname minikube && echo "minikube" | sudo tee /etc/hostname
I0605 15:55:48.735160  281582 main.go:141] libmachine: Error dialing TCP: ssh: handshake failed: read tcp 127.0.0.1:60964->127.0.0.1:60748: read: connection reset by peer
I0605 15:55:51.925406  281582 main.go:141] libmachine: SSH cmd err, output: <nil>: minikube

I0605 15:55:51.925463  281582 cli_runner.go:164] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0605 15:55:51.979240  281582 main.go:141] libmachine: Using SSH client type: native
I0605 15:55:51.979499  281582 main.go:141] libmachine: &{{{<nil> 0 [] [] []} docker [0x808a40] 0x80b720 <nil>  [] 0s} 127.0.0.1 60748 <nil> <nil>}
I0605 15:55:51.979509  281582 main.go:141] libmachine: About to run SSH command:

        if ! grep -xq '.*\sminikube' /etc/hosts; then
            if grep -xq '127.0.1.1\s.*' /etc/hosts; then
                sudo sed -i 's/^127.0.1.1\s.*/127.0.1.1 minikube/g' /etc/hosts;
            else 
                echo '127.0.1.1 minikube' | sudo tee -a /etc/hosts; 
            fi
        fi
I0605 15:55:52.112439  281582 main.go:141] libmachine: SSH cmd err, output: <nil>: 
I0605 15:55:52.112486  281582 ubuntu.go:175] set auth options {CertDir:/home/chanriat/.minikube CaCertPath:/home/chanriat/.minikube/certs/ca.pem CaPrivateKeyPath:/home/chanriat/.minikube/certs/ca-key.pem CaCertRemotePath:/etc/docker/ca.pem ServerCertPath:/home/chanriat/.minikube/machines/server.pem ServerKeyPath:/home/chanriat/.minikube/machines/server-key.pem ClientKeyPath:/home/chanriat/.minikube/certs/key.pem ServerCertRemotePath:/etc/docker/server.pem ServerKeyRemotePath:/etc/docker/server-key.pem ClientCertPath:/home/chanriat/.minikube/certs/cert.pem ServerCertSANs:[] StorePath:/home/chanriat/.minikube}
I0605 15:55:52.112593  281582 ubuntu.go:177] setting up certificates
I0605 15:55:52.112612  281582 provision.go:83] configureAuth start
I0605 15:55:52.112738  281582 cli_runner.go:164] Run: docker container inspect -f "{{range .NetworkSettings.Networks}}{{.IPAddress}},{{.GlobalIPv6Address}}{{end}}" minikube
I0605 15:55:52.172317  281582 provision.go:138] copyHostCerts
I0605 15:55:52.172353  281582 exec_runner.go:144] found /home/chanriat/.minikube/ca.pem, removing ...
I0605 15:55:52.172363  281582 exec_runner.go:203] rm: /home/chanriat/.minikube/ca.pem
I0605 15:55:52.172427  281582 exec_runner.go:151] cp: /home/chanriat/.minikube/certs/ca.pem --> /home/chanriat/.minikube/ca.pem (1082 bytes)
I0605 15:55:52.172486  281582 exec_runner.go:144] found /home/chanriat/.minikube/cert.pem, removing ...
I0605 15:55:52.172489  281582 exec_runner.go:203] rm: /home/chanriat/.minikube/cert.pem
I0605 15:55:52.172515  281582 exec_runner.go:151] cp: /home/chanriat/.minikube/certs/cert.pem --> /home/chanriat/.minikube/cert.pem (1127 bytes)
I0605 15:55:52.172585  281582 exec_runner.go:144] found /home/chanriat/.minikube/key.pem, removing ...
I0605 15:55:52.172589  281582 exec_runner.go:203] rm: /home/chanriat/.minikube/key.pem
I0605 15:55:52.172612  281582 exec_runner.go:151] cp: /home/chanriat/.minikube/certs/key.pem --> /home/chanriat/.minikube/key.pem (1675 bytes)
I0605 15:55:52.172643  281582 provision.go:112] generating server cert: /home/chanriat/.minikube/machines/server.pem ca-key=/home/chanriat/.minikube/certs/ca.pem private-key=/home/chanriat/.minikube/certs/ca-key.pem org=chanriat.minikube san=[192.168.49.2 127.0.0.1 localhost 127.0.0.1 minikube minikube]
I0605 15:55:52.398016  281582 provision.go:172] copyRemoteCerts
I0605 15:55:52.398050  281582 ssh_runner.go:195] Run: sudo mkdir -p /etc/docker /etc/docker /etc/docker
I0605 15:55:52.398076  281582 cli_runner.go:164] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0605 15:55:52.450780  281582 sshutil.go:53] new ssh client: &{IP:127.0.0.1 Port:60748 SSHKeyPath:/home/chanriat/.minikube/machines/minikube/id_rsa Username:docker}
I0605 15:55:52.552165  281582 ssh_runner.go:362] scp /home/chanriat/.minikube/certs/ca.pem --> /etc/docker/ca.pem (1082 bytes)
I0605 15:55:52.586028  281582 ssh_runner.go:362] scp /home/chanriat/.minikube/machines/server.pem --> /etc/docker/server.pem (1204 bytes)
I0605 15:55:52.616559  281582 ssh_runner.go:362] scp /home/chanriat/.minikube/machines/server-key.pem --> /etc/docker/server-key.pem (1675 bytes)
I0605 15:55:52.647593  281582 provision.go:86] duration metric: configureAuth took 534.971073ms
I0605 15:55:52.647607  281582 ubuntu.go:193] setting minikube options for container-runtime
I0605 15:55:52.647730  281582 config.go:182] Loaded profile config "minikube": Driver=docker, ContainerRuntime=docker, KubernetesVersion=v1.28.3
I0605 15:55:52.647770  281582 cli_runner.go:164] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0605 15:55:52.705736  281582 main.go:141] libmachine: Using SSH client type: native
I0605 15:55:52.706030  281582 main.go:141] libmachine: &{{{<nil> 0 [] [] []} docker [0x808a40] 0x80b720 <nil>  [] 0s} 127.0.0.1 60748 <nil> <nil>}
I0605 15:55:52.706037  281582 main.go:141] libmachine: About to run SSH command:
df --output=fstype / | tail -n 1
I0605 15:55:52.842348  281582 main.go:141] libmachine: SSH cmd err, output: <nil>: overlay

I0605 15:55:52.842363  281582 ubuntu.go:71] root file system type: overlay
I0605 15:55:52.842513  281582 provision.go:309] Updating docker unit: /lib/systemd/system/docker.service ...
I0605 15:55:52.842593  281582 cli_runner.go:164] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0605 15:55:52.910624  281582 main.go:141] libmachine: Using SSH client type: native
I0605 15:55:52.910950  281582 main.go:141] libmachine: &{{{<nil> 0 [] [] []} docker [0x808a40] 0x80b720 <nil>  [] 0s} 127.0.0.1 60748 <nil> <nil>}
I0605 15:55:52.911014  281582 main.go:141] libmachine: About to run SSH command:
sudo mkdir -p /lib/systemd/system && printf %!s(MISSING) "[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
BindsTo=containerd.service
After=network-online.target firewalld.service containerd.service
Wants=network-online.target
Requires=docker.socket
StartLimitBurst=3
StartLimitIntervalSec=60

[Service]
Type=notify
Restart=on-failure

Environment="NO_PROXY=10.96.0.0/12,192.168.59.0/24,192.168.49.0/24,192.168.39.0/24,127.0.0.1, localhost, bitbucketbdsfr.fsc.atos-service.net"
Environment="NO_PROXY=127.0.0.1, localhost, bitbucketbdsfr.fsc.atos-service.net"
Environment="HTTPS_PROXY"
Environment="HTTP_PROXY"