docker how to name a container code example
Example 1: how to rename a docker container
/*it does not restart the container */
docker container rename [old name] [new name]
Example 2: docker run name
docker run --name <container name> -dp <local port>:<container port> <image>