Verdaccio is a lightweight Node.js private proxy registry, you can publish your private javascript libraries onto it and use private registry for your js project
Pull and run verdaccio docker container
# Use podman command to run docker container on redhat 7
podman run -d --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio
# Command description
-d: start a container in detached mode (https://docs.docker.com/engine/reference/run/#detached--d)
--rm: if you’d like Docker to automatically clean up the container and remove the file system when the container exits (https://docs.docker.com/engine/reference/run/#clean-up---rm)
# Verify container is running.
podman ps -a
# Example output
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
609a430338f4 docker.io/verdaccio/verdaccio:latest /bin/sh -c node -... 7 seconds ago Up 6 seconds ago 0.0.0.0:4873->4873/tcp verdaccio
Open firewall TCP port 4873 to allow remote connection
sudo firewall-cmd --zone=public --permanent --add-port=4873/tcp
# Reload firewall rule.
sudo firewall-cmd --reload
# Open browser, access your-server:4873, follow instructions to create user
npm adduser --registry http://your-ip:4873/