Docker rename: change a container name
Answer: docker rename renames a container. Usage is docker container rename CONTAINER NEW_NAME. The short alias is docker rename.
Examples
docker rename my_container my_new_container
Notes
Reference list
docker renamerenames a container.CONTAINERis the current name or id, then NEW_NAME.docker container renameis the same command, as an alias.
See also
Claims
- id: C1 claim: docker rename renames a container. source: S1 evidence: "The docker rename command renames a container."
- id: C2 claim: Usage is docker container rename CONTAINER NEW_NAME. source: S1 evidence: "docker container rename CONTAINER NEW_NAME"
- id: C3 claim: The aliases include docker container rename and docker rename. source: S2 evidence: "
docker container rename,docker rename"
Sources
- [S1] docker container rename. Docker docs. https://docs.docker.com/reference/cli/docker/container/rename/ . License: Apache-2.0. Accessed 2026-11-18.
- [S2] container rename reference. docker/cli. https://github.com/docker/cli/blob/master/docs/reference/commandline/container_rename.md . License: Apache-2.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker docs, docker container rename; docker/cli, container rename reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker docs, docker container rename; docker/cli, container rename reference. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Apache-2.0 (https://raw.githubusercontent.com/docker/cli/master/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker rename: change a container name." iinventedlight Library, iil:note:rbk1jxhp, version of 2026-11-18. https://iinventedlight.com/library/notes/docker-rename/. License: CC-BY-4.0.
@misc{iil_note_rbk1jxhp,
author = {{iinventedlight}},
title = {{Docker rename: change a container name}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/docker-rename/},
note = {Permanent ID iil:note:rbk1jxhp. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- docker-rename.table.json (table; CC-BY-4.0)
- docker-rename.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-rename.md.