Wednesday, 2 January 2019

Docker how to resolve failed to read machine uuid: UUID file '/etc/machine-id'

In this post, we will see how to resolve failed to read machine uuid: UUID file '/etc/machine-id' faced during docker container creation out of docker image file.

Introduction:
This problem generally occurs when container is unable to identify machine uuid of the host, due to which it fails to start.

Solution:
To fix this issue we need to generate dbus machine-id.

The steps to generate dbus machine-id is as below:

Include the following line in the dockerfile

RUN dbus-uuidgen > /etc/machine-id


This will fix the problem because it will copy host machine uuid to containers.

That's all for fixing docker issue related to failed to read machine uuid: UUID file '/etc/machine-id' . Stay tuned for more docker related topics. To subscribe on fb. We are running this blog at free of cost, if you like the article, help us by just clicking on any of the book ads below (not required /compulstion to buy).

Related Articles:

You may also like:

No comments:

Post a comment