astrand / xclip

Command line interface to the X11 clipboard
GNU General Public License v2.0
1.03k stars 73 forks source link

xclip in a docker container authorization error #141

Open bwintertkb opened 1 year ago

bwintertkb commented 1 year ago

Hi all,

Thank you for reading this!

I'm building a dev environment in a Docker container from the image ubuntu:20.04 and within that image I run the command RUN sudo apt-get -y install xclip. Unfortunately when I invoke xclip I get the following error: Authorization required, but no authorization protocol specified Error: Can't open display: :1

Do you know what this might mean? And also how to go about solving it?

Thanks in advance!

hackerb9 commented 1 year ago

Are you able to run any X programs? For example, xeyes or xdpyinfo?