mirror of
https://github.com/portainer/portainer-docs.git
synced 2026-03-27 12:58:32 +07:00
27 lines
1.3 KiB
Markdown
27 lines
1.3 KiB
Markdown
# Edit or duplicate a container
|
|
|
|
{% hint style="warning" %}
|
|
Editing a container effectively creates a new container with the updated settings and replaces the old container.
|
|
{% endhint %}
|
|
|
|
## Editing a running container
|
|
|
|
From the menu select **Containers**, select the container you want to edit then click **Duplicate/Edit**.
|
|
|
|
<figure><img src="../../../.gitbook/assets/2.15-docker_containers_container_edit.gif" alt=""><figcaption></figcaption></figure>
|
|
|
|
Make the required changes to the container configuration. When you're finished, click **Deploy the container**. When the confirmation message appears, click **Replace**.
|
|
|
|
<figure><img src="../../../.gitbook/assets/2.15-container-edit-confirm.png" alt=""><figcaption></figcaption></figure>
|
|
|
|
If successful, a message will appear confirming that a new container has been created with the new settings, replacing the old container.
|
|
|
|
## Duplicating a running container
|
|
|
|
From the menu select **Containers**, select the container you want to duplicate then click **Duplicate/Edit**.
|
|
|
|
<figure><img src="../../../.gitbook/assets/2.15-docker_containers_container_edit.gif" alt=""><figcaption></figcaption></figure>
|
|
|
|
Make the required changes to the container configuration, making sure you enter a new container name in order to create a duplicate. When you're finished, click **Deploy the container**.
|
|
|