Closed mqt2r closed 1 year ago
The problem is from the command cp /proc/sys/kernel/random/uuid /etc/machine-id
, which will generate new uuid after a restart. You can change your dockerfile and change it to a fixed uuid.
Here is the script: https://github.com/omniedgeio/omniedge-docker/blob/main/entrypoint
Every time I restart omniedge container, the IP address changes.
docker-compose file:
docker version:
I expect the IP address of the container to remain the same after a restart.