java.io.FileNotFoundException: ../sonatype-work/nexus3/tmp/i4j_ZTDnGON8hezynsMX2ZCYAVDtQog=.lock (Permission denied)
没有权限呀!!!
docker image inspect sonatype/nexus3
查看镜像信息你会发现
"Config": { ...... "User": "nexus", ...... }
没错,缺省用户名是“nexus”。
如果你使用卷是其他用户的,就会出现没权限的情况。
解决方法
指定用户,当前用户使用:${USER}
docker-compose-yml
nexus3: image: sonatype/nexus3:latest restart: always user: ${USER} volumes: - "./nexus/nexus-data/:/nexus-data/"
- FileNotFoundException sonatype-work 2ZCYAVDtQog i4j_ZTDnGON ZCYAVDtQogfilenotfoundexception sonatype-work 2zcyavdtqog 2zcyavdtqog i4j_ztdngon sonatype-work zcyavdtqog filenotfoundexception filenotfoundexception rollingfileappender permission filenotfoundexception hadoop_home mapreduce filenotfoundexception resource because cannot filenotfoundexception directory libraries android