Nexus 설치
큰 어려움이 없어서 log만 남김
[devops@localhost docker]$ docker search sonatype/nexus3
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.26/images/search?limit=25&term=sonatype%2Fnexus3: dial unix /var/run/docker.sock: connect: permission denied
[devops@localhost docker]$ su
암호:
[root@localhost docker]# docker search sonatype/nexus3
INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED
[root@localhost docker]# docker search nexus3
INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED
docker.io docker.io/sonatype/nexus3 Sonatype Nexus Repository Manager 3 620
docker.io docker.io/shifudao/nexus3 clone from nexus3 image but based from ope... 4 [OK]
docker.io docker.io/cloudsc/nexus3-blobstore-s3 nexus3 with nexus-blobstore-s3 integrated 2
docker.io docker.io/home1oss/nexus3 An auto configured nexus3 2 [OK]
docker.io docker.io/madmuffin/nexus3 Sonatype Nexus3 Milestone7 docker image 2 [OK]
docker.io docker.io/alvindaiyan/nexus3-azure-appservice 1
docker.io docker.io/cirepo/nexus3 An auto configured nexus3 1 [OK]
docker.io docker.io/flavioaiello/nexus3 Production ready lightweight Nexus3 with A... 1 [OK]
docker.io docker.io/fxinnovation/nexus3 Sonatype Nexus 3 in a container 1 [OK]
docker.io docker.io/azaa1/nexus3 Sonyatype Nexus Repository Manager 3 0
docker.io docker.io/bigseasre/nexus3 mirror of the original nexus3 dockerfile 0
docker.io docker.io/binsix/nexus3 docker images of nexus3 base on openjdk 0 [OK]
docker.io docker.io/clivesaha/nexus3 nexus3 0
docker.io docker.io/darthhater/nexus3 A series of example Dockerfiles and images... 0 [OK]
docker.io docker.io/desiato/nexus3-ssl Sonatype Nexus 3 with SSL/TLS support. 0 [OK]
docker.io docker.io/devopsmakers/nexus3 A Nexus3 container with the apt plugin 0
docker.io docker.io/dwolla/nexus3-crowd Nexus3 with nexus3-crowd-plugin installed 0 [OK]
docker.io docker.io/enieuw/nexus3-oss nexus3-oss 0 [OK]
docker.io docker.io/freckleiot/nexus3-oss A Sonatype Nexus3 OSS image which makes it... 0 [OK]
docker.io docker.io/joshdvir/nexus3 nexus3 0 [OK]
docker.io docker.io/lokkju/nexus3-github-auth Sonatype Nexus 3 with Github authenticatio... 0 [OK]
docker.io docker.io/mritd/nexus3 nexus3 0 [OK]
docker.io docker.io/salte/nexus3 Extends the Sonatype nexus3 Docker image b... 0 [OK]
docker.io docker.io/sdase/nexus3-base-image An opinionated nexus3 docker image, based ... 0 [OK]
docker.io docker.io/stocksoftware/nexus3 A nexus3 docker instance 0 [OK]
[root@localhost docker]# docker pull docker.io/sonatype/nexus3
Using default tag: latest
Trying to pull repository docker.io/sonatype/nexus3 ...
latest: Pulling from docker.io/sonatype/nexus3
8ba884070f61: Pull complete
9d732789dc29: Pull complete
b56d6d0d4fc5: Pull complete
Digest: sha256:970b09779992bf88d041d074428c54dc153f7b9c8cafe4ff364dd26d69200f7a
Status: Downloaded newer image for docker.io/sonatype/nexus3:latest
[root@localhost docker]# ls
[root@localhost docker]# mkdir nexus-data
[root@localhost docker]# ls
nexus-data
[root@localhost docker]# ll
합계 0
drwxr-xr-x. 2 root root 6 6월 26 11:21 nexus-data
[root@localhost docker]# chown -R 200 nexus-data/
[root@localhost docker]# ll
합계 0
drwxr-xr-x. 2 200 root 6 6월 26 11:21 nexus-data
[root@localhost docker]# firewall-cmd --permanent --zone=public --add-port=8081/tcp
success
[root@localhost docker]# firewall-cmd --reload
success
[root@localhost docker]#
[root@localhost docker]# docker run -d -p 8081:8081 --privileged --name nexus -v /nexus-data:/nexus-data sonatype/nexus3
67826ba9e0179b6009c9c7a177fe1815fd320cdac65ea91d479413f7c4e5e81a
[root@localhost docker]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
67826ba9e017 sonatype/nexus3 "sh -c ${SONATYPE_..." 3 seconds ago Up 3 seconds 0.0.0.0:8081->8081/tcp nexus
[root@localhost docker]# docker logs -f
728x90
반응형
'OS' 카테고리의 다른 글
Hyper V Ubuntu File share (samba) (0) | 2020.09.13 |
---|---|
virtual host on centos (0) | 2020.03.27 |
Virtual Box And Vagrant Install on Centos (0) | 2020.03.27 |
Network setup CentOS7 on Virtual Box (0) | 2020.03.27 |
Docker Ubuntu VM 만들기 (1) | 2020.03.27 |