woonizzooni

Docker Sonatype Nexus 설치 본문

Docker

Docker Sonatype Nexus 설치

woonizzooni 2019. 6. 18. 03:00

(실행 환경 참고

 https://woonizzooni.tistory.com/entry/Docker-Toolbox-설치-메모리-확장-디스크-확장-timezone변경 )

 

1. Nexus data 디렉토리 생성

    $ sudo -i

    # mkdir -p /mnt/sdb1/nexus-data

    # chown -R 200 /mnt/sdb1/nexus-data

 

2. Nexus data 디렉토리 mount + nexus 이미지 다운로드 & 컨테이너 실행

    $ docker run -d -p 49001:8081 -p 51001:51001 -v /mnt/sdb1/nexus-data:/nexus-data --name mynexus sonatype/nexus3

$ docker run -itd \
-p 49001:8081 \
-p 51001:51001 \
-v /mnt/sda1/nexus-data:/nexus-data \
--name mynexus \
sonatype/nexus3

Unable to find image 'sonatype/nexus3:latest' locally
latest: Pulling from sonatype/nexus3
8ba884070f61: Pull complete 
....

$ docker exec -it mynexus bash
dbash-4.2$ df -h
Filesystem      Size  Used Avail Use% Mounted on
overlay          18G  2.0G   15G  12% /
tmpfs            64M     0   64M   0% /dev
tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/sdb1        98G  708M   93G   1% /nexus-data <----- 
/dev/sda1        18G  2.0G   15G  12% /etc/hosts
shm              64M     0   64M   0% /dev/shm
tmpfs           2.0G     0  2.0G   0% /proc/asound
tmpfs           2.0G     0  2.0G   0% /proc/acpi
tmpfs           2.0G     0  2.0G   0% /proc/scsi
tmpfs           2.0G     0  2.0G   0% /sys/firmware

 

3. Nexus 접속 (http://192.168.99.100:49001/#browse/welcome)

 - Sign in 클릭 : id/passwd = admin/admin123 

 

Comments