笔记笔记
  • Home
  • AI&ML
  • Example
  • Zoo
  • 关于
⌘ K
docker 笔记
常用容器
Sonatype Nexus
GitLab CE
BitTorrent Tracker
搜索引擎
Debian
最后更新时间:
Copyright © 2023-2024 | Powered by dumi | GuoDapeng | 冀ICP备20004032号-1 | 冀公网安备 冀公网安备 13024002000293号

TABLE OF CONTENTS

‌
‌
‌
‌

Sonatype Nexus Repository Manager

sonatype/nexus3

sonatype/nexus3

docker run -d \
--name nexus \
--restart=always \
-p 8081:8081 \
-p 5000:5000 \
-v $PWD/nexus-data:/nexus-data \
sonatype/nexus3
docker exec -it nexus /bin/bash

For the official (non-ARM) Docker Image - sonatypecommunity/nexus3

docker pull sonatypecommunity/nexus3:3.77.2
docker run -d \
--name nexus \
--restart=always \
-p 8081:8081 \
-v $PWD/nexus_data_3_77:/nexus-data \
sonatypecommunity/nexus3:3.77.2
# 查看初始密码
docker exec -it nexus cat /nexus-data/admin.password
docker exec -it nexus bash
  • group 表示分组
  • hosted 表示本机私有
  • proxy 表示远程代理

若 registry 配置为 group 包括 hosted 和 proxy,首先会从 hosted 取,若无则从 proxy 取并缓存,下次则会从缓存取。

创建 npm 仓库

# 查看源
pnpm get registry
# 修改源
pnpm config set registry http://127.0.0.1:8081/repository/npm-group/

出现如下情况,多尝试几次,缓存包需要时间。

╭─felix at FelixMacBookPro in ~/Documents/MobileWork/knowledge_base/project/doc on dev✘✘✘ 24-08-23 - 19:30:27
╰─⠠⠵ pnpm install
 ERR_PNPM_FETCH_404  GET http://127.0.0.1:8081/repository/npm-group/css: Not Found - 404
This error happened while installing the dependencies of dumi@2.4.9
at html2sketch@1.0.2
css is not in the npm registry, or you have no permission to fetch it.
No authorization header was set for the request.
Progress: resolved 261, reused 261, downloaded 0, added 0

或者尝试npm install --force这个命令,这样 Sonatype Nexus 会强制下载。然后删除 node_modules 重试。

Preview
Preview
代理仓库
Preview

代理仓库

私有仓库
Preview

私有仓库

仓库分组
Preview

仓库分组

复制仓库链接
Preview

复制仓库链接

网络代理设置
Preview

网络代理设置