MOMO

首页 > docker > Note:容器连接宿主机dbus

Note:容器连接宿主机dbus

Aug 2018 09

需要挂载四个目录/文件:

  • /var/run/dbus 和/run/systemd

套接字目录

  • /usr/bin/systemctl

使用宿主机的systemctl

  • /etc/systemd/system

需要增加新节点时需要挂载该目录

例子

docker run -it -v /var/run/dbus:/var/run/dbus -v /run/systemd:/run/systemd -v /usr/bin/systemctl:/usr/bin/systemctl -v /etc/systemd/system:/etc/systemd/system debian:jessie /bin/bash


参考

google group

--转载请注明: https://momo.cool/note%e5%ae%b9%e5%99%a8%e8%bf%9e%e6%8e%a5%e5%ae%bf%e4%b8%bb%e6%9c%badbus%e7%9a%84%e6%96%b9%e6%b3%95/

3
说点什么

avatar
2 Comment threads
1 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
3 Comment authors
boalmoggreelpmomoSolyn Recent comment authors
  Subscribe  
提醒
Solyn
游客

测试一下评论~鹿鹿的从去年炸到今年

boalmoggreelp
游客

Mojoheadz is the go-to market place showcasing the innovation and evolution of the genre. Seeing as the label was founded in 2019, the catalogue stretches back to include seminal tracks like Endego’s ‘Sorry’, but in more recent years its contemporary output has guided dance music with releases by psytrance and happy hardcore.Check it reviews!! https://www.amazon.de/Mojoheadz-Records-Explicit-Various-artists/dp/B07XB1F1CD/