有时想给一个已经存在的容器进行重命名,使用 docker rename 命令即可。 例如,将容器的名称由 influxdb5 重命名为 influxdb,命令如下: docker rename influxdb5 influxdb