docker rename
SafeRename containers
docker rename <old> <new>
Renames a container — replace random names with meaningful ones to prevent mix-ups.
Examples
docker rename eager_morse web-prodGive an operational name
Syntax
docker rename <old> <new>
Before you run it
Name change only.
Related commands
- docker psList containers
- docker runRun a container
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store