Docker Community Forums

Share and learn in the Docker community.

Is there any method to modify container ID

I am able to modify docker container name. I would like to change the container ID but I have looked through the docker docs and I have not been able to find a way to do this?

Hi, this is not possible since its used as an identifier thoughout the docker deamon.
Why do you even want to change it?

Hi, I would like to change docker resources using docker swarm.(such as updating RAM limit, number of containers, CPU usage) For big system I am trying to put same identifier for every type of application in containers since there may be many different containers ID with same type application. In the project it is aimed to scale number of containers depending on their resources. If container ID could be changed, I would put particular ID’s for specific type of application that will run inside a container.