rename a running docker container

C++
$ sudo docker rename discourse_app disc_app

Source

Also in C++: