Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aider in Docker doesn't work with clipboard modes #3327

Open
mbetrifork opened this issue Feb 21, 2025 · 0 comments
Open

Aider in Docker doesn't work with clipboard modes #3327

mbetrifork opened this issue Feb 21, 2025 · 0 comments

Comments

@mbetrifork
Copy link

mbetrifork commented Feb 21, 2025

Issue

When running Aider in Docker the various options to copy to and from the clipboard do not work.

First of all Pyperclip can't find a way to access the clipboard inside the container. One major thing that is missing here is that xclip is not installed in the container image, and that clipboards aren't shared with containers by default (to my knowledge).

Another major issue is that Pyperclip doesn't play nice with Wayland, which is the gold standard in ubuntu today. That might be for a different issue though, as it's likely just as much of an issue when running aider in a non-docker installation. But still.. :-)

There are ways around this, for example to create a wrapper script inside the container named "xclip" and then mapping the relevant Wayland socket into the container, something like this: docker -v /run/user/1000/wayland-0:/run/user/1000/wayland-0

There's more to do than just the above. The main point is that there are gaps here that aren't easily solved by end users who want to run Aider in a docker container as described on the aider home page. The description needs to be expanded to include workarounds, or to include a note stating that this specific functionality isn't available when running in Docker.

Version and model info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant