美文网首页
基于 Docker 安装 Nexus

基于 Docker 安装 Nexus

作者: Evasi0n | 来源:发表于2019-06-26 11:37 被阅读0次

    基于 Docker 安装 Nexus

    我们使用 Docker 来安装和运行 Nexus,docker-compose.yml 配置如下:

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

    启动时如果出现权限问题可以使用:chmod 777 /usr/local/docker/nexus/data 赋予数据卷目录可读可写的权限

    地址:http://ip:port/

    # 启动后查看用户名密码
    Your admin user password is located in 
    /nexus-data/admin.password on the server.
    

    相关文章

      网友评论

          本文标题:基于 Docker 安装 Nexus

          本文链接:https://www.haomeiwen.com/subject/byaqcctx.html