Score:0

failed to create bus connection: no such file or directory

dm flag
  1. Virtualbox with ubuntu 22.04
[root@container www]# systemctl start NetworkManager
Failed to get D-Bus connection: No such file or directory
  1. Virtualbox with ubuntu 20.04
docker run --privileged -d -ti dev:centos7
drsr@ubuntu2004:~$ docker exec -it container bash
[root@container www]# systemctl status NetworkManager
    ● NetworkManager.service - Network Manager
       Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
       Active: inactive (dead)
         Docs: man:NetworkManager(8)

What i tried:

  1. I tried to create /etc/docker/daemon.json with
{
"deprecatedCgroupv1": true
}

and restarted systemctl restart docker.service

but unable to restart the service

  1. ran with --privileged flag added
mkdir -p /run/dbus/system_bus_socket, 
export XDG_RUNTIME_DIR='/run/user/1000'
export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1000/bus'

but nothing works, the same image works with Ubuntu 20.04 but not with 22.04 strange.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.