1. 上一篇:docker安装nexus
  2. nexus3.x版本数据默认放在sonatype-work目录下,把原有的nexus服务器上的sonatype-work目录打包拷贝到新的nexus服务器上
  3. 编写docker-compose.yml文件,通过挂载方式把sonatype-work目录挂载进去
version: '2'
services:
  nexus:
    image: "menard99/alpine-nexus:3.15.2"
    hostname: nexus
    container_name: nexus
    ports:
      - 8081:8081
    volumes:
      - /usr/local/sonatype-work/:/usr/local/sonatype-work/
    environment:
      - TZ=Asia/Shanghai
    restart: always

  1. 通过docker-compose启动镜像
    docker-compose up -dnexus迁移
  2. 浏览器输入ip:端口查看,maven的jar包已经迁移过来了。
    nexus迁移

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
  • 2022-01-15
  • 2021-07-02
  • 2021-06-24
猜你喜欢
  • 2021-09-08
  • 2021-10-23
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案