mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-04-28 12:02:51 -04:00
[PR #5] [MERGED] ✨ feat(update-portainer-ce): Preserve current Portainer ports #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/bigbeartechworld/big-bear-scripts/pull/5
Author: @dragonfire1119
Created: 9/4/2024
Status: ✅ Merged
Merged: 9/6/2024
Merged by: @dragonfire1119
Base:
master← Head:update-portainer-ce-ports📝 Commits (1)
5f6c154✨ feat(update-portainer-ce): Preserve current Portainer ports📊 Changes
1 file changed (+23 additions, -3 deletions)
View changed files
📝
update-portainer-ce/run.sh(+23 -3)📄 Description
This change ensures that the new Portainer container is created with the same ports as the
current configuration. It first checks the existing Portainer container to get the
current port mappings, and then uses those values when starting the new container.
This way, clients do not need to update any of their configurations when the Portainer
version is updated.
Summary by CodeRabbit
New Features
8000:8000and9443:9443, with adaptability to existing configurations.Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.