fix: 404 for publish (#483) #4851
Unanswered
jjangga0214
asked this question in
Q&A
Replies: 1 comment
-
Same as #3665 Verdaccio runs as uid 10001 in the container. As you wrote, you need to set "user:" in the docker-compose |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Your Environment
Describe the bug
Hi!
When publishing a new package, 404 error occurs.
This was reported from #483 originally, but auto-closed even though it's not fixed.
To Reproduce
docker-compose.yaml:
404 error while publishing
foo
:Expected behavior
It should work.
Configuration File (cat ~/.config/verdaccio/config.yaml)
Workaround
Set
user
asroot
(user: root
).docker-compose.yaml:
services: verdaccio: image: verdaccio/verdaccio + user: root networks: - verdaccio environment: - VERDACCIO_PORT=4873 ports: - '4873:4873' volumes: - verdaccio:/verdaccio - ./config.yaml/:/verdaccio/conf/config.yaml healthcheck: # This image does not have curl. So, use wget instead. test: wget --spider --quiet http://localhost:4873/-/ping || exit 1 interval: 3s # Time between health checks timeout: 5s # Time to wait for a health check response retries: 5 # Number of consecutive failures required before marking the service as unhealthy start_period: 5s # Start period to allow the service to initialize before health checks begin networks: verdaccio: driver: bridge volumes: verdaccio:
Beta Was this translation helpful? Give feedback.
All reactions