containers / podman-desktop

Podman Desktop is the best free and open source tool to work with Containers and Kubernetes for developers. Get an intuitive and user-friendly interface to effortlessly build, manage, and deploy containers and Kubernetes — all from your desktop.
https://podman-desktop.io
Apache License 2.0
4.56k stars 290 forks source link

Docker Socket Compatibility: Docker socket is not reachable. Docker specific tools may not work. #6150

Open mejobloggs-cw opened 6 months ago

mejobloggs-cw commented 6 months ago

Bug description

When I open Podman Desktop, it gives me this error/warning image

I looked through the guides and couldn't find anything related that could help me.

How can I resolve this error?

Thanks

Operating system

Windows 11

Installation Method

Winget (Windows)

Version

next (development version)

Steps to reproduce

See description

Relevant log output

No response

Additional context

No response

benoitf commented 6 months ago

hello @mejobloggs-cw AFAIK on Windows the compatibility should be on by default if there is no other tools using the docker socket path (npipe on Windows)

do you have some docker tools running ?

mejobloggs-cw commented 6 months ago

do you have some docker tools running ?

I don't think so. I have not installed Docker, I think it was just installed by Podman.

I had an old install of Podman/desktop already, but I ran the uninstaller first before installing the new version.

Perhaps there is some old settings from the previous Podman that have affected something?

benoitf commented 6 months ago

could you grab the log of podman machine start (after stopping it)

either from the details in settings/resources podman and arrow

or 'podman machine stop' and then 'podman machine start' on the CLI

mejobloggs-cw commented 6 months ago

I'm not sure how to find the log file, but when I run command podman machine start I get this

podman machine start
Starting machine "podman-machine-default"
API forwarding listening on: npipe:////./pipe/docker_engine

Docker API clients default to this address. You do not need to set DOCKER_HOST.
Machine "podman-machine-default" started successfully

I also clicked on the "Troubleshoot" lightbulb icon at the bottom right and found some logs.

Not sure if they are the correct logs, because when I podman machine start/stop they don't update... But here they are:

error : main ↪️ Kubeconfig path C:\Users\MyUserName\.kube\config provided does not exist. Skipping.
warn : MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 extensions-started listeners added. Use emitter.setMaxListeners() to increase limit
warn : MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 extension-stopped listeners added. Use emitter.setMaxListeners() to increase limit
log : main ↪️ PluginSystem: received dom-ready event from the UI
log : main ↪️ Starting http server to handle webviews on port 44000
log : main ↪️ Delayed startup, flushing 7 events
log : main ↪️ System ready. Loading extensions...
log : main ↪️ Activating extension (podman-desktop.compose) with max activation time of 10 seconds
log : main ↪️ Activating extension (podman-desktop.docker) with max activation time of 10 seconds
log : main ↪️ Activating extension (podman-desktop.kind) with max activation time of 10 seconds
log : main ↪️ Activating extension (podman-desktop.kube-context) with max activation time of 10 seconds
log : main ↪️ [kube-context] starting extension kube-context
log : main ↪️ Activating extension (podman-desktop.kubectl-cli) with max activation time of 10 seconds
log : main ↪️ Activating extension (podman-desktop.lima) with max activation time of 10 seconds
debug : main ↪️ [lima] Could not find socket at C:\Users\MyUserName\.lima\podman\sock\podman.sock
log : main ↪️ Activating extension (podman-desktop.podman) with max activation time of 10 seconds
log : main ↪️ Activating extension (podman-desktop.registries) with max activation time of 10 seconds
log : main ↪️ Activating extension (podman-desktop.docker) ended in 373 milliseconds
log : main ↪️ Activating extension (podman-desktop.kube-context) ended in 291 milliseconds
log : main ↪️ Activating extension (podman-desktop.lima) ended in 215 milliseconds
log : main ↪️ Activating extension (podman-desktop.registries) ended in 22 milliseconds
log : main ↪️ Activating extension (podman-desktop.compose) ended in 493 milliseconds
log : main ↪️ Activating extension (podman-desktop.kubectl-cli) ended in 351 milliseconds
error : main ↪️ [compose] Error getting compose version: Error: Failed to execute command: spawn C:\Users\MyUserName\.local\share\containers\podman-desktop\extensions-storage\podman-desktop.compose\bin\docker-compose.exe ENOENT
warn : main ↪️ [kubectl-cli] Error getting kubectl from user PATH: Error: Failed to execute command: spawn kubectl.exe ENOENT, trying from extension storage path
warn : main ↪️ [kubectl-cli] Error getting kubectl version system from extension storage path Error: Failed to execute command: spawn C:\Users\MyUserName\.local\share\containers\podman-desktop\extensions-storage\podman-desktop.kubectl-cli\bin\kubectl.exe ENOENT
error : main ↪️ Unable to fetch the available extensions: Timeout awaiting 'lookup' for 1000ms
log : main ↪️ Fetched https://registry.podman-desktop.io/api/extensions.json in 1101.5014000000083ms
log : main ↪️ [kind] kind extension is active
log : main ↪️ Activating extension (podman-desktop.kind) ended in 2818 milliseconds
log : main ↪️ [kind] kind extension is active
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
log : main ↪️ [kind] kind extension is active
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
log : main ↪️ Activating extension podman-desktop.podman failed error:Error: Extension podman-desktop.podman activation timed out after 10 seconds
log : main ↪️ PluginSystem: initialization done.
log : main ↪️ Fetched https://registry.podman-desktop.io/api/extensions.json in 105.81020000000717ms
warn : main ↪️ [podman]  Can't get machine podman-machine-default resource usage error Error: no running provider for the matching container
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
log : main ↪️ error is Error: connect ENOENT \\.\pipe\podman-machine-default
warn : main ↪️ Error when handling events Error: Error in handling events Will reconnect in 5s Error: Error in handling events
error : main ↪️ /event stream received an error. Error: aborted
warn : main ↪️ Error when handling events Error: Error in handling events Will reconnect in 5s Error: Error in handling events
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
log : main ↪️ Aborting reconnect due to error as connection is now stopped
warn : main ↪️ [podman]  Can't get machine podman-machine-default resource usage error Error: no running provider for the matching container
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
log : main ↪️ Fetched https://registry.podman-desktop.io/api/extensions.json in 239.5204999987036ms
error : main ↪️ /event stream received an error. Error: aborted
warn : main ↪️ Error when handling events Error: Error in handling events Will reconnect in 5s Error: Error in handling events
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
log : main ↪️ Aborting reconnect due to error as connection is now stopped
warn : main ↪️ [podman]  Can't get machine podman-machine-default resource usage error Error: no running provider for the matching container
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
log : main ↪️ error is Error: connect ENOENT \\.\pipe\podman-machine-default
warn : main ↪️ Error when handling events Error: Error in handling events Will reconnect in 5s Error: Error in handling events
error : main ↪️ /event stream received an error. Error: aborted
warn : main ↪️ Error when handling events Error: Error in handling events Will reconnect in 5s Error: Error in handling events
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
log : main ↪️ Aborting reconnect due to error as connection is now stopped
warn : main ↪️ [podman]  Can't get machine podman-machine-default resource usage error Error: no engine matching this container
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
log : main ↪️ error is Error: connect ENOENT \\.\pipe\podman-machine-default
warn : main ↪️ Error when handling events Error: Error in handling events Will reconnect in 5s Error: Error in handling events
log : main ↪️ [kind] error in engine Podman Error: connect ENOENT \\.\pipe\podman-machine-default
error : main ↪️ /event stream received an error. Error: aborted
warn : main ↪️ Error when handling events Error: Error in handling events Will reconnect in 5s Error: Error in handling events
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
log : main ↪️ Aborting reconnect due to error as connection is now stopped
warn : main ↪️ [podman]  Can't get machine podman-machine-default resource usage error Error: no running provider for the matching container
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
log : main ↪️ error is Error: connect ENOENT \\.\pipe\podman-machine-default
warn : main ↪️ Error when handling events Error: Error in handling events Will reconnect in 5s Error: Error in handling events
error : main ↪️ /event stream received an error. Error: aborted
warn : main ↪️ Error when handling events Error: Error in handling events Will reconnect in 5s Error: Error in handling events
error : main ↪️ /event stream received an error. Error: aborted
warn : main ↪️ Error when handling events Error: Error in handling events Will reconnect in 5s Error: Error in handling events
error : main ↪️ /event stream received an error. Error: aborted
warn : main ↪️ Error when handling events Error: Error in handling events Will reconnect in 5s Error: Error in handling events
debug : main ↪️ [podman] Error while pinging docker as podman Error: connect ENOENT //./pipe/docker_engine
log : main ↪️ Aborting reconnect due to error as connection is now stopped
log : main ↪️ Aborting reconnect due to error as connection is now stopped
log : main ↪️ Aborting reconnect due to error as connection is now stopped
warn : main ↪️ [podman]  Can't get machine podman-machine-default resource usage error Error: no running provider for the matching container
mejobloggs-cw commented 6 months ago

Ok I discovered if I start the machine via Podman Desktop, then I don't get the "Docker socket is not reachable" error

Steps:

But in Windows Terminal if I type:

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had activity in the last 6 months. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!