astrand/xclip

xclip in a docker container authorization error

bwintertkb opened this issue · 1 comments

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!

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