• Docker运行图形化程序


    原理

    Docker支持图形化程序,是利用Linux的X11技术。

    相关文章

    引文详情

    如何在Docker容器中启动D-Bus
    
    翻译自 https://georgik.rocks/how-to-start-d-bus-in-docker-container/
    
    很多Linux应用需要用到 D-Bus, 但它在Docker容器中默认并不存在
    
    当你尝试启动这类应用时,你会收到一个错误信息:
    
    D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
    See the manual page for dbus-uuidgen to correct this issue.
      D-Bus not built with -rdynamic so unable to print a backtrace
    Aborted
    
    首先你需要通过下面命令生成缺失的 machine-id(译者注:我一般是直接在容器启动时挂载host上的machine-id):
    
    dbus-uuidgen > /var/lib/dbus/machine-id
    
    这样以来,即使DBus守护进程没有启动,应用也能启动
    
    要在容器中启动D-Bus守护进程,你需要运行下面命令
    
    mkdir -p /var/run/dbus
    dbus-daemon --config-file=/usr/share/dbus-1/system.conf --print-address
    
    在 Centos 上则改为:
    
    dbus-daemon --config-file=/etc/dbus-1/system.conf --print-address
    
    现在守护进程运行起来了,你的应用也能用了. 输出的结果类似于下面这样:
    
    unix:path=/var/run/dbus/system_bus_socket,guid=9cfabcc6f66027251e092e955d09e707
    
  • 相关阅读:
    jenkins安装
    HTTP协议客户端是如何向服务器发送请求
    接口概念
    fiddler导出har格式转化成yml格式

    双硬盘双系统装错了记录
    chrome的版本和driver版本对应表
    monkey详解
    adb命令熟悉
    cookie、session、token
  • 原文地址:https://www.cnblogs.com/jiftle/p/12015634.html
Copyright © 2020-2023  润新知