Building Docker image on Linux fails when pulling verdaccio/verdaccio image #3686
Replies: 7 comments
-
|
Beta Was this translation helpful? Give feedback.
-
The issue occurs when pulling the image. I'm not sure adding the debugging tool would do much. Is there a verdaccio v5 image available built with node:16 rather than node:18? |
Beta Was this translation helpful? Give feedback.
-
My reply was not for this ticket :) |
Beta Was this translation helpful? Give feedback.
-
No, there is only one. |
Beta Was this translation helpful? Give feedback.
-
It works for me with your example
|
Beta Was this translation helpful? Give feedback.
-
Yeah it builds on Mac just fine for me as well - its when its being built or pulled on a linux machine that causes the issues. I believe if im reading this npm ticket correctly, it occurs when using a 9.x version of npm below 9.5.1. |
Beta Was this translation helpful? Give feedback.
-
Ok than is an external issue nothing I can do about it, but good to have a reference if others encounter this problem |
Beta Was this translation helpful? Give feedback.
-
Your Environment
Describe the bug
When pulling the verdaccio/verdaccio docker image on a linux system the build fails due to high container ids being mapped as uid's.
It seems its possible the issue has to do with specific npm versions and userns mapping within docker + linux. When the uid is too high, linux has issues. I have supplied some articles below that lead me in that direction.
To Reproduce
Running locally on a Mac and Docker does not replicate this issue and I have not found a way to do so.
I have started to run into the issue when deploying via linux containers in both Bitbucket pipelines during build and Azure Web Apps during deployment as they both use Linux environments
How to reproduce the issue
Build a docker image within a linux environment from the verdaccio/verdaccio base image
Steps to reproduce the issue
Dockerfile
docker-compose.yaml
Command to get error:
Expected behavior
The build should not error when pulling images
Screenshots, server logs, package manager log
Some links I have found while attempting to debug this problem:
Configuration File (cat ~/.config/verdaccio/config.yaml)
config.yaml
Environment information
Environment Info:
System:
OS: Linux 5.10 Alpine Linux
CPU: (6) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
npm: 9.3.1 - /usr/local/bin/npm
npmGlobalPackages:
verdaccio: 5.22.1
Contribute to Verdaccio
Beta Was this translation helpful? Give feedback.
All reactions