The scenario: I'm trying to set timezone on a docker container based on Ubuntu 18.04 docker image. Just pull the image, updated, and installed systemd
> apt-get -y update
> apt-get -y install systemd
The error: Failed to create bus connection: No such file or directory
> timedatectl
> timedatectl: Failed to create bus connection: No such file or directory
The question: What I'm missing?
Note: There is no file localtime and timezone in directory etc
> ls /etc/localtime
> ls: cannot access '/etc/localtime': No such file or directory
> ls /etc/timezone
> ls: cannot access '/etc/timezone': No such file or directory
I've seen this and this but did not resolve, because dbus is not missing in my case
> apt-get install dbus
> dbus is already the newest version (1.12.2-1ubuntu1.1).
Thank you
dbus
is not missing in my case:dbus is already the newest version (1.12.2-1ubuntu1.1).
(improved the question)