systemd-machine-id-setup

Initialize the machine ID stored in /etc/machine-id at install time with a provisioned or randomly generated ID. Note: Always use sudo to execute these commands as they require elevated privileges. More information: <https://www.freedesktop.org/software/systemd/man/systemd-machine-id-setup.html>.

Debian Debian
RUN apt-get update && \ apt-get install -y systemd
Ubuntu
RUN apt-get update && \ apt-get install -y systemd
Arch Arch Linux
RUN pacman -S --noconfirm systemd
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y systemd
CentOS
RUN yum install -y systemd
Fedora
RUN dnf install -y systemd
Raspbian
RUN apt-get update && \ apt-get install -y systemd
click the source code to copy install systemd-machine-id-setup on any operating system with command-not-found.com