container_rename
Rename a container in place; its ID, state, and configuration stay unchanged. Use it to free up or claim a name, with a conflict error if the new name is taken.
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: name: The new name; must not be in use by any other container
Returns: dict: The container's full inspect payload after the rename
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| id_or_name | Yes |