groupadd -g 200 nexus
useradd -g 200 -u 200 nexus
yum install -y podman java-1.8.0-openjdk-devel.x86_64
mkdir /data/nexus2-data
podman load -i docker_image_nexus_2.15.1-02.tar
podman run -d -p 8088:8081 --name nexus2 -v /data/nexus2-data:/sonatype-work --privileged=true registry.hub.docker.com/sonatype/nexus:2.15.1-02
podman logs -f $(podman ps -a -q -f name=nexus2)
#podman rm --force $(podman ps -a -q -f name=nexus2)
mkdir /root/.m2
cat << EOF > /root/.m2/settings.xml
<settings>
<mirrors>
<mirror>
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://localhost:8088/nexus/content/groups/public</url>
</mirror>
</mirrors>
</settings>
EOF
[docker] podman sonatype nexus 2 설치
2022. 4. 21. 10:51