跑起一个容器,状态一直是 Restarting (255)
查看日志报这个错
... 12 more
Error creating bundle cache.
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
Warning: Cannot open log file: …/sonatype-work/nexus3/log/jvm.log
解决办法是 关闭并删除当前容器,创建映射的目录并给777权限
重新跑一个容器,就ok了