container renameコマンドは、コンテナの名前を変更します。
rename
記述
docker container rename コンテナ名 変更するコンテナ名
$ docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8de4bd6b30bb nginx "/docker-entrypoint.…" 1 seconds ago Created my_nginx
$ docker container rename my_nginx renamed_my_nginx
$ docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8de4bd6b30bb nginx "/docker-entrypoint.…" 1 seconds ago Created renamed_my_nginx