After using Docker Compose deployment Nexus Tip: Unable to create directory / nexus-data / instance

Scenes

Ubuntu Server use Docker Compose deploy Nexus (graphic tutorial):

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/101111611

Once deployed Nexus above, after starting the log Tip:

Unable to create directory /nexus-data/instance

 

 

Note:

Blog:
https://blog.csdn.net/badao_liumang_qizhi
public concern number of
programs overbearing ape
acquisition-related programming e-books, tutorials and push for free download.

achieve

This is because the configuration of the data volume in the docker-compose.yml.

version: '3' 
services: 
  nexus: 
    restart: always 
    image: sonatype/nexus3 
    container_name: nexus3 
    ports:
      - 8081:8081 
    volumes: 
      - /usr/local/docker/nexus/nexus-data:/nexus-data

 

But there is no authorization for data volume catalog.

So it is necessary to authorize nexus-data, where the first grant all privileges.

chmod 777 nexus-data/

 

 

Guess you like

Origin www.cnblogs.com/badaoliumangqizhi/p/11565113.html