Comments (9)
Also discussed here, for making the podman socket path configurable:
* [Implement option to view rootful containers on Linux 🐧 #2861](https://github.com/containers/podman-desktop/issues/2861)
I think my issue is a little bit different. I only have one docker installation (rootless) while the other issue has two docker installations at the same time. And my only problem is that Docker Desktop could not find the socket file.
So making this currently hard coded path configurable either by a settings entry or by an environment variable would already solve my issue.
from podman-desktop.
But Podman Desktop then still has to "find" the correct socket path, because the path depends on the user and its id.
from podman-desktop.
extension could also scan for /run/user/<user-id>/docker.sock
(in addition to global socket of Docker)
how did you setup your docker installation ?
also are you using docker context
command ?
from podman-desktop.
I followed these steps to setup docker: https://docs.docker.com/engine/security/rootless/
Until now I have not used docker context.
I already tried to add /run/user/1000/docker.sock to the permission list of flatpak without luck.
If i create a symlink locally from /run/user/1000/docker.sock to /run/docker.sock, it works.
extension could also scan for /run/user//docker.sock (in addition to global socket of Docker)
I could not find any code searching for /run/user in the extension file https://github.com/containers/podman-desktop/blob/main/extensions/docker/src/extension.ts. What am I missing?
from podman-desktop.
https://github.com/containers/podman-desktop/blob/main/extensions/docker/src/extension.ts#L150
here, on linux we could search for other paths if file exists
from podman-desktop.
Also discussed here, for making the podman socket path configurable:
from podman-desktop.
I don't think Podman Desktop supports docker contexts or podman connections, it works directly with hardcoded unix
paths.
It also doesn't yet support remote sockets like tcp
or ssh
, but I think supporting those are in the backlog (EDIT: #279)
from podman-desktop.
Choosing between "system" or "user" socket would probably be enough
It could support more (arbitrary path) for e.g. docker machine, but that is more of advanced feature and not needed for the simple Boolean scenario
from podman-desktop.
But Podman Desktop then still has to "find" the correct socket path, because the path depends on the user and its id.
It already knows how to do this, but it is only enabled for Podman and not for Docker (and vice-verse for the other socket)
function getLinuxSocketPath(): string {
// grab user id of the user
const userInfo = os.userInfo();
const uid = userInfo.uid;
return `/run/user/${uid}/podman/podman.sock`;
}
const isWindows = os.platform() === 'win32';
if (isWindows) {
socketPath = '//./pipe/docker_engine';
} else {
socketPath = '/var/run/docker.sock';
}
from podman-desktop.
Related Issues (20)
- Stable statusbar order, ability to remove items
- API to expose getPodInspect
- Review Podman Desktop Screens for inconsistencies
- Kube context is not loaded in podman desktop until restart HOT 2
- allow to provide class parameters to Badge component
- extension status icon should say `ACTIVE` and not `ENABLED` when extension is running
- Refactor the circular dependecies in E2E test base
- Move E2E test codebase under new sub folder to improve the readability
- Show all of Command in Summary
- Installing via winget doesn't require WSL
- UX: make featured extensions look more special than the all extensions section on catalog page HOT 6
- Kind extension unable to create a cluster HOT 4
- I can't compile v1.8.0 because of dependency issues. Why is [email protected] specified? HOT 3
- for releases, create the PR to flathub when creating the tag
- Provide visible button to push an image even when no registries are configured HOT 2
- Failure when pushing image is not reported in the UI
- Error thrown when trying to create podman machine from dashboard via onboarding flow on Windows HOT 4
- Docs: Screenshots / showcasing Kubernetes dash features within docs.
- Export playwright tests into npmjs
- Podman Desktop should propagate `color-scheme` css variable to webviews
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from podman-desktop.