此内容还未提供中文版,以下为英文版

docker rename

预计阅读时间: 1 分钟

Description

Rename a container

Usage

docker rename CONTAINER NEW_NAME

Parent command

Command Description
docker The base command for the Docker CLI.

Extended description

The docker rename command renames a container.

Examples

$ docker rename my_container my_new_container