docker code to rename 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: rename a running docker container
$ sudo docker rename discourse_app disc_app