{"id":20293844,"url":"https://github.com/paul1404/update-portainer","last_synced_at":"2025-06-22T18:36:44.113Z","repository":{"id":179954845,"uuid":"664365439","full_name":"Paul1404/Update-Portainer","owner":"Paul1404","description":"This repository contains a Bash script to facilitate the process of updating a running Portainer instance.","archived":false,"fork":false,"pushed_at":"2023-09-08T22:06:12.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T05:28:19.356Z","etag":null,"topics":["bash-script","portainer"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Paul1404.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-09T18:51:42.000Z","updated_at":"2023-07-10T06:20:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7a4efbe-cd4c-411d-af89-cddd345c9dca","html_url":"https://github.com/Paul1404/Update-Portainer","commit_stats":null,"previous_names":["paul1404/update-portainer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Paul1404/Update-Portainer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul1404%2FUpdate-Portainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul1404%2FUpdate-Portainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul1404%2FUpdate-Portainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul1404%2FUpdate-Portainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Paul1404","download_url":"https://codeload.github.com/Paul1404/Update-Portainer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul1404%2FUpdate-Portainer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261344616,"owners_count":23144900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash-script","portainer"],"created_at":"2024-11-14T15:26:28.194Z","updated_at":"2025-06-22T18:36:39.048Z","avatar_url":"https://github.com/Paul1404.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Portainer Update Script \n\nThis repository contains a Bash script to facilitate the process of updating a running Portainer instance. It specifically works with Portainer instances running as standalone Docker containers. The script effectively stops and removes the existing Portainer container, pulls the latest image, and spins up a new container with the same configuration, including port mapping.\n\n## 💡 Features \n\n- **User Confirmation**: Prompts the user for confirmation before starting the update process.\n- **Version Support**: Asks the user whether they're using Portainer CE (Community Edition) or BE (Business Edition).\n- **Port Mapping**: Automatically fetches the host port mapped to Portainer's `9000` port in the existing setup, and applies the same mapping for the new container.\n\n## 📝 Usage \n\nFollow these steps to use this script:\n\n1. Clone this repository:\n    ```bash\n    git clone https://github.com/Paul1404/Update-Portainer.git\n    ```\n2. Change your working directory to the cloned repository:\n    ```bash\n    cd Update-Portainer\n    ```\n3. Make the script executable:\n    ```bash\n    chmod +x update_portainer.sh\n    ```\n4. Run the script:\n    ```bash\n    ./update_portainer.sh\n    ```\n\n## ⚠️ Requirements \n\n- Docker installed and running on your system.\n- An existing Portainer container running on Docker.\n\n## ⚠️ Disclaimer \n\nPlease use this script at your own risk. It is always recommended to backup your data before making changes to your system. This script stops and removes the Portainer container which may result in data loss if the data is not stored on a volume or bind mount.\n\n## 📜 License \n\nThis project is licensed under the [MIT License](https://choosealicense.com/licenses/mit/).\n\n## 🤝 Contact \n\nPaul Dresch - github@untereuerheim.com\n\nProject Link: https://github.com/Paul1404/Update-Portainer\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaul1404%2Fupdate-portainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaul1404%2Fupdate-portainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaul1404%2Fupdate-portainer/lists"}