Replies: 8 comments 1 reply
-
Works for me
|
Beta Was this translation helpful? Give feedback.
-
Yes, and with next |
Beta Was this translation helpful? Give feedback.
-
Ok I see your point,I don't see the big issue, but anyway, do you have any specific proposal that improves what exist already? |
Beta Was this translation helpful? Give feedback.
-
The issue is "simple": after restarting verdaccio, all locally published npm packages are gone. They went away with the old inaccessible volume. All those private package will need to be republished. Suggestion would be to remove volume definition from Dockerfile, since anonymous volumes are not very useful these days anyway. Everybody would be free to define a volume as they like, be it for /verdaccio or /verdaccio/storage, /verdaccio/config, /verdaccio/plugins. |
Beta Was this translation helpful? Give feedback.
-
I understand but I don't agree, I think are very useful, volumes can be mapped if you want to persist you have volumes, docker-compose, etc etc, anyhow I guess is just matter of opinions, I respect your of course. This is not a bug, rather a suggestion so I'll move this thread to a disscusion and tag the Helm/Kubernetters users which have more experience than me in this matter and keep discussing there. cc: @verdaccio/kubernetes |
Beta Was this translation helpful? Give feedback.
-
Sure, YMMV :-) I'm really interested in the benefit of anonymous volumes nowadays. Is there more than "--volume-from"? |
Beta Was this translation helpful? Give feedback.
-
I'm having this issue as well. I mapped the volume storage outside the container and it simply doesn't work on publish new npm packages. However it works if I don't have the volume mapped, but then every docker image update will wipe all the published packages. This is really anoying. |
Beta Was this translation helpful? Give feedback.
-
Why is this default behavior? Literally no other docker image I have used has this issue |
Beta Was this translation helpful? Give feedback.
-
Your Environment
Describe the bug
On each
docker run
(also via docker compose) a new volume for /verdaccio/storage is created. IMO, it should be left to the user, whether and how the volume should be created at all. Besides, the empty volume on start is rather useless.For me, I'd like to use a bind mount from a certain host directory to /verdaccio. However, at the moment, I need to override the volume at /verdaccio/storage in order to prevent those volumes and, most notably, reuse all uploaded packages.
To Reproduce
Expected behavior
Doesn't create any unexpected docker volume.
Beta Was this translation helpful? Give feedback.
All reactions