mirror of https://github.com/docker/cli.git
30 lines
435 B
Markdown
30 lines
435 B
Markdown
---
|
|
title: "rename"
|
|
description: "The rename command description and usage"
|
|
keywords: "rename, docker, container"
|
|
---
|
|
|
|
# rename
|
|
|
|
```markdown
|
|
Usage: docker rename CONTAINER NEW_NAME
|
|
|
|
Rename a container
|
|
|
|
Aliases:
|
|
docker container rename, docker rename
|
|
|
|
Options:
|
|
--help Print usage
|
|
```
|
|
|
|
## Description
|
|
|
|
The `docker rename` command renames a container.
|
|
|
|
## Examples
|
|
|
|
```console
|
|
$ docker rename my_container my_new_container
|
|
```
|