How does docker specify the ip address of the container?

  docker, question

By default, my network card has a docker0 with an ip of I think the fixed ip allocated by the container is

Isn’t it?sudo docker run -p <imageID>?
I don’t know whether you want to change the port that the container maps to the outside to this ip or whether you want to run the contents of the container on this ip inside.