recreate_container
Update a Docker container to a new image: stops the existing container, pulls the specified image, and starts a replacement container.
Instructions
Recreate a container with an updated image (stops old container, pulls new image, starts new container)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | New image to use (e.g., 'nginx:latest') | |
| containerId | Yes | Container ID or name | |
| environmentId | Yes | Portainer environment ID |