Relative Topices
[AI Router] How to Update Portainer on the AI Board to the Latest Version?
1. Applicable Environment and Safety Notice
This guide applies to environments where SSH access to the host is unavailable and Portainer is managed only through a browser. Before proceeding, confirm that the signed-in Portainer account has Administrator permissions.
Advanced Operation and Risk Notice: This procedure recreates the Portainer container through a temporary helper container. It should be performed only by personnel familiar with container management. Read the side effects below and verify every parameter before starting.
2. Side Effects and Risks to Review Before Updating
1. Host disconnection risk in environments without SSH (highest risk): The procedure stops the old container, removes it, and then starts a replacement. If the replacement fails because of incorrect command syntax, a port conflict, or an image problem, the Portainer web interface will remain unavailable. Without SSH access, you cannot recover it through the command line and must contact a system administrator with host-level permissions.
2. Custom advanced settings may be lost: A basic recreation command preserves only published ports and the data volume. Custom networks, environment variables such as timezone or proxy settings, reverse-proxy labels, and CPU or memory limits may be reset to default values.
3. Temporary Portainer and remote-node interruptions: The browser interface will be unavailable for approximately 15 to 20 seconds while the container is recreated. Unsaved operations may be lost. Edge Agents using port 8000 may temporarily appear offline and normally reconnect after the new container starts. Other containers running on the host are not affected.
4. Residual resources: The old Portainer image and the completed temporary updater container may remain after the upgrade and require manual cleanup.
3. Upgrade Procedure
Step 1: Record the Existing Container Parameters
1. Open Portainer and select Containers.
2. Record the Portainer container Name, referred to below as <portainer_container_name>, and its published ports, such as 9443:9443 and 8000:8000.
3. Open the container details and locate the Volumes section. Record the host or volume name mapped to /data, referred to below as <portainer_data_volume>.
4. Review Network, Env, and Labels and record any non-default custom settings for reconfiguration after the upgrade.
Step 2: Pull the Latest Image
1. Select Images.
2. Enter this image name in Image:
| portainer/portainer-ce:latest |
3. Select Pull the image.
4. Confirm that the portainer/portainer-ce image with the latest tag appears in the Images list.
Step 3: Create and Run the Temporary Updater Container
1. Select Containers, then + Add container.
2. Configure:
- Name: portainer-updater
- Image: docker:cli
3. Open Advanced container settings, then Command & logging:
- Set Command to Override.
- Replace <portainer_container_name> and <portainer_data_volume> with the values recorded in Step 1:
| sh -c "sleep 3 && docker stop <portainer_container_name> && docker rm <portainer_container_name> && docker run -d -p 8000:8000 -p 9443:9443 --name <portainer_container_name> --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v <portainer_data_volume>:/data portainer/portainer-ce:latest" |
4. Open Volumes, select + map additional volume, and switch the mode to Bind:
- Container: /var/run/docker.sock
- Host: /var/run/docker.sock
5. Verify every parameter and select Deploy the container.
6. The browser may lose connectivity for 3 to 5 seconds after deployment, indicating that the old container has stopped and recreation has started.
Step 4: Verify and Clean Up
1. Wait 15 to 20 seconds, refresh the browser, and sign back in.
2. Check the version number or confirm the Portainer container's Image field shows the latest version. Reapply any custom networks, environment variables, labels, or resource limits recorded in Step 1.
3. Remove the completed portainer-updater container after it reports exited - code 0.
4. Optionally remove unused old Portainer images from Images to reclaim storage.
4. Troubleshooting and Rollback
- The initial-administrator setup screen appears after login: The <portainer_data_volume> value is incorrect. Do not create a new administrator account. Recreate portainer-updater, replace it with the original volume name recorded in Step 1, and redeploy it.
- portainer-updater exits with code 1: Check for a container-name typo or port conflict, remove the updater container, correct the command, and retry.
How to get the (Utility / Firmware)?
You can download the latest drivers, software, firmware and user manuals in the ASUS Download Center.
If you need more information about the ASUS Download Center, please refer this link.