【发布时间】:2017-08-11 09:59:04
【问题描述】:
我正在尝试创建一个内部运行自定义 D-Bus 总线的 Docker 容器。
我的 Dockerfile 配置如下:
FROM ubuntu:16.04
COPY myCustomDbus.conf /etc/dbus-1/
RUN apt-get update && apt-get install -y dbus
RUN dbus-daemon --config-file=/etc/dbus-1/myCustomDbus.conf
构建后,创建了套接字,但它被标记为as "file", not as "socket",我不能将它用作总线......
-rwxrwxrwx 1 root root 0 Mar 20 07:25 myCustomDbus.sock
如果我删除此文件并在终端中再次运行dbus-daemon 命令,则套接字创建成功:
srwxrwxrwx 1 root root 0 Mar 20 07:35 myCustomDbus.sock
我不确定这是 D-Bus 问题还是 docker 问题。
【问题讨论】:
-
你能找到解决办法吗?
标签: docker dbus unix-socket