Nexus Repository Manager 3 installing with Docker
发布日期:2021-06-30 12:19:05 浏览次数:2 分类:技术文章

本文共 932 字,大约阅读时间需要 3 分钟。

How to install Docker on CentOS 7

Centos中安装Docker,  参考:

How to install Nexus Repository Manager 3 with Docker:

A. docker Pull Command

  1. docker pull sonatype/nexus3

B. Persistent Data

There are two general approaches to handling persistent storage requirements with Docker. See  for additional information.

  1. Use a data volume. Since data volumes are persistent until no containers use them, a volume can be created specifically for this purpose. This is the recommended approach.

$ docker volume create --name nexus-data

$ docker run -d -p 8081:8081 --name nexus -v nexus-data:/nexus-data sonatype/nexus3

        2. To test.

/]# curl -u admin:admin123 http://localhost:8081/service/metrics/ping

pong

说明成功!

Docker容器启动

$ systemctl start docker

$ systemctl enable docker

$ systemctl stop docker

$ systemctl status docker

nexus的启动:

$ docker start nexus

$ docker stop nexus

$ docker stats nexus

$ docker rm nexus(删除image)

查看Dockerimage

$ docker ps -a

转载地址:https://java-basketball.blog.csdn.net/article/details/78219998 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Spring Cloud (3) | spring cloud bus 消息总线kafka应用
下一篇:MySQL导出、删除索引Index和约束的方法

发表评论

最新留言

能坚持,总会有不一样的收获!
[***.219.124.196]2024年04月11日 21时21分15秒