How not to get a different serial number each time I start my container ? #300

Open
opened 2025-12-29 00:23:38 +01:00 by adam · 3 comments
Owner

Originally created by @Subhankar2000 on GitHub (Jan 3, 2022).

I have taken the pre-installed mac OS catalina, but as after every boot from the same container, I am having different serial numbers as a result, I am getting kicked out of my icloud account, is there any way to get a static serial number one which will not change on every boot ?

Originally created by @Subhankar2000 on GitHub (Jan 3, 2022). I have taken the pre-installed mac OS catalina, but as after every boot from the same container, I am having different serial numbers as a result, I am getting kicked out of my icloud account, is there any way to get a static serial number one which will not change on every boot ?
Author
Owner

@mitchellkrogza commented on GitHub (Apr 1, 2022):

Did you find a solution to this?

@mitchellkrogza commented on GitHub (Apr 1, 2022): Did you find a solution to this?
Author
Owner

@Subhankar2000 commented on GitHub (Apr 1, 2022):

yes, I remember it vaguely but I as far I remember, you will need to stop the docker service, go to the folder where the files are stored(you can search using the id), there will be a config file, there you need to edit it, there will be something that generate Random Serial everytime equals true, that you need to make it false

@Subhankar2000 commented on GitHub (Apr 1, 2022): yes, I remember it vaguely but I as far I remember, you will need to stop the docker service, go to the folder where the files are stored(you can search using the id), there will be a config file, there you need to edit it, there will be something that generate Random Serial everytime equals true, that you need to make it false
Author
Owner

@mitchellkrogza commented on GitHub (Apr 2, 2022):

yes, I remember it vaguely but I as far I remember, you will need to stop the docker service, go to the folder where the files are stored(you can search using the id), there will be a config file, there you need to edit it, there will be something that generate Random Serial everytime equals true, that you need to make it false

Thanks very much I sorted it out this morning. For others who run into this.

sudo systemctl stop docker
sudo jq . /docker/containers/[FULL-CONTAINER-ID]/config.v2.json > ~/config.v2.json
sudo mv ~/config.v2.json /docker/containers/[FULL-CONTAINER-ID]/config.v2.json
sudo nano /docker/containers/[FULL-CONTAINER-ID]/config.v2.json

Either delete the two following lines in the ENV section or set them to false

     "GENERATE_SPECIFIC=true",
     "GENERATE_UNIQUE=true",

then restart docker

sudo systemctl restart docker

Your serial should now be fixed, confirm this by rebooting the container at least 2 times each time checking the SERIAL and UUID from System Report

@mitchellkrogza commented on GitHub (Apr 2, 2022): > yes, I remember it vaguely but I as far I remember, you will need to stop the docker service, go to the folder where the files are stored(you can search using the id), there will be a config file, there you need to edit it, there will be something that generate Random Serial everytime equals true, that you need to make it false Thanks very much I sorted it out this morning. For others who run into this. ``` sudo systemctl stop docker sudo jq . /docker/containers/[FULL-CONTAINER-ID]/config.v2.json > ~/config.v2.json sudo mv ~/config.v2.json /docker/containers/[FULL-CONTAINER-ID]/config.v2.json sudo nano /docker/containers/[FULL-CONTAINER-ID]/config.v2.json ``` Either delete the two following lines in the ENV section or set them to false ``` "GENERATE_SPECIFIC=true", "GENERATE_UNIQUE=true", ``` then restart docker ``` sudo systemctl restart docker ``` Your serial should now be fixed, confirm this by rebooting the container at least 2 times each time checking the SERIAL and UUID from System Report
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#300