docker rename a container code example
Example 1: rename a running docker container
$ sudo docker rename discourse_app disc_app
Example 2: docker rename a container
/*it does not restart the container */
docker container rename [old name] [new name]