1

I am having issues related with xclip in a docker container.

echo "text" | xclip

which raises the error: Error: Can't open display: (null).

How can I programmatically add some text to host's clipboard from the container (in an OS independent way if possible)?

Thank you in advance.

UPDATE

DISPLAY env variable is not set. How can I set it correctly?

J. Snow
  • 305
  • 2
  • 10

0 Answers0