Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我xclip在 docker 容器中遇到了相关问题。
xclip
echo "text" | xclip
这引发了错误:Error: Can't open display: (null).
Error: Can't open display: (null)
如何以编程方式将一些文本从容器中添加到主机的剪贴板(如果可能,以独立于操作系统的方式)?
先感谢您。
DISPLAY未设置环境变量。如何正确设置?
DISPLAY