docker 啟動nexus 出現的問題

2021-09-11 17:55:13 字數 971 閱讀 7954

問題1:啟動nexus時,沒有許可權操作宿主機資料夾

docker run -d -p 8082:8082 -v /home/nexus-data/:/nexus-data/ --name nexus1 sonatype/nexus3
warning:  cannot open log file: ../sonatype-work/nexus3/log/jvm.log

warning: forcing option -xx:logfile=/tmp/jvm.log

unable to update instance pid: unable to create directory /nexus-data/instances

/nexus-data/log/karaf.log (no such file or directory)

unable to update instance pid: unable to create directory /nexus-data/instances

mkdir: cannot create directory '../sonatype-work/nexus3/log': permission denied

mkdir: cannot create directory '../sonatype-work/nexus3/tmp': permission denied

openjdk 64-bit server vm warning: cannot open file ../sonatype-work/nexus3/log/jvm.log due to no such file or directory

解決方案: 修改宿主機資料夾許可權

chmod 777 /home/nexus-data1
問題2:設定埠8082,拒絕訪問

解決方案:修改nexus配置檔案 nexus.properties

使用docker安裝 Nexus

nexus 是乙個強大的倉庫管理器,極大地簡化了內部倉庫的維護和外部倉庫的訪問。使用 docker 來安裝和執行 nexus,docker compose.yml配置如下 version 3.1 services nexus restart always image sonatype nexus3 ...

docker 安裝 maven私服 nexus3

root lch docker run d p 8081 8081 name nexus v root nexus data var nexus data restart always sonatype nexus3 檢視容器內部 此處有值說明安裝成功 我遇到的bug,只有按照上述命令的順序 執行,...

搭建docker私有倉庫nexus

可以參考docker practice裡的nexus3來搭建。docker group 乙個倉庫集合,可以包含多個docker host和docker hub docker host 本地倉庫 docker hub 倉庫 建立本地倉庫,修改name和http埠號,其餘預設 該http埠是用來上傳映象...