mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #2556] NGP creates new volumes after updating the image #1782
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1782
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @calvin-robertson on GitHub (Jan 23, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2556
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
I updated the image, and upon relaunching, I found that all my settings were gone. After some research, I discovered that if the docker container is updated it creates new data volumes to use.
I attempted to ensure that the docker container used created volumes in the compose file, but even then upon rebuilding the container, I found it continued to generate new anonymous volumes to store the data
Nginx Proxy Manager Version
2.9.18
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Image/Compose file creates named containers that can be reused for data persistance. This way when the image is updated it doesn't wipe the configuration.
Screenshots
Operating System
Ubuntu Server 22.04
@ghost commented on GitHub (Jan 24, 2023):
You should map
/dataand/etc/letsencryptto a location on your host (or the default docker location) in your volumes. If not mapped everything will be wiped. This is true when redeploying any container. See https://docs.docker.com/storage/volumes/@calvin-robertson commented on GitHub (Jan 26, 2023):
I made several attempts to do this in the docker compose file and no matter how I mapped things it still stored all the data in an anonymous docker volume. Cursory research of other docker forums seems to indicate this is a problem with the docker file itself. If you have a working docker compose file that is working, could you post the lines that map those volumes?
@github-actions[bot] commented on GitHub (Jan 29, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Mar 15, 2025):
Issue was closed due to inactivity.