xxxxxxxxxx
/*it does not restart the container */
docker container rename [old name] [new name]
xxxxxxxxxx
$ docker rename my_container my_new_container
$ docker redis:4.0 redis-old
xxxxxxxxxx
$ docker rename my_container my_new_container
$ docker redis:4.0 redis-old