container_rename
Assign a new name to a Docker container without altering its ID, state, or configuration. Use it to free up or claim a container name.
Instructions
Rename a container in place; its id, state, and configuration are unchanged.
Use it to free up or claim a container name (names are unique per daemon) — e.g. before
starting a replacement under the old name. Fails with a conflict error if the new name is
already taken. Not related to image_tag, which names images.
args: id_or_name - The container id or name name - The new name; must not be in use by any other container returns: dict - The container's attrs after the rename
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| id_or_name | Yes |