docker搭建jpom

docker pull jpomdocker/jpom

mkdir -p /data/jpom-server/logs

mkdir -p /data/jpom-server/data

mkdir -p /data/jpom-server/conf

docker run -d -p 2122:2122 \

--name jpom-server \

-v /data/jpom-server/logs:/usr/local/jpom-server/logs \

-v /data/jpom-server/data:/usr/local/jpom-server/data \

-v /data/jpom-server/conf:/usr/local/jpom-server/conf \

jpomdocker/jpom

docker pull jpomdocker/jpom

查看docker日志

sudo journalctl -u docker.service

Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp 108.160.162.109:443: i/o timeout

sudo systemctl restart docker

nslookup registry-1.docker.io

systemctl status docker

vi /etc/docker/daemon.json

{

"registry-mirrors": ["https://6kx4zyno.mirror.aliyuncs.com"]

}

{

"registry-mirrors": ["https://docker.m.daocloud.io"]

}

{

"registry-mirrors": ["https://docker.1panel.live"]

}

systemctl daemon-reload

systemctl restart docker

systemctl status docker

docker pull jpomdocker/jpom

mkdir -p /data/jpom-server/logs

mkdir -p /data/jpom-server/data

mkdir -p /data/jpom-server/conf

docker run -d -p 2122:2122 \

--name jpom-server \

-v /data/jpom-server/logs:/usr/local/jpom-server/logs \

-v /data/jpom-server/data:/usr/local/jpom-server/data \

-v /data/jpom-server/conf:/usr/local/jpom-server/conf \

jpomdocker/jpom

自动化项目部署平台搭建

jpom

http://127.0.0.1:2122/

账号:test

密码:test123

PJHQCSIQHYFSVVXKTCGAOGHSAHEBOCXS

https://gitee.com/jinyi-technology-department/jykjhospital.git

tcp://192.168.0.11:2375

养成好习惯,修改配置前,先备份

[root@k8s0 ~]# cp /usr/lib/systemd/system/docker.service /usr/lib/systemd/system/docker.service.bk

修改配置

[root@k8s0 ~]# vi /usr/lib/systemd/system/docker.service

找到[Service]

#ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H fd:// --containerd=/run/containerd/containerd.sock

重启docker

[root@k8s0 ~]# systemctl daemon-reload # 重新加载守护进程配置

[root@k8s0 ~]# systemctl restart docker # 重启 docker 服务

systemctl status docker

systemctl enable docker

docker-local

tcp://127.0.0.1:2375

1.列出所有运行的docker容器实例,找到对应重复实例对应的CONTAINER ID或者NAMES

docker ps -a

2.删除容器

删除指定的容器

docker rm ID/NAME

删除所有闲置容器

docker container prune

在这里插入图片描述

3.重新启动docker

systemctl restart docker

查看端口是否开启

netstat -nlpt

-H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock

再[Service] 下边

ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

[Service]

ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock

systemctl daemon-reload

systemctl restart docker

systemctl status docker

systemctl stop docker

相关推荐
无为扫地僧9 分钟前
三、ubuntu18.04安装docker
ubuntu·docker
谷莠子9051 小时前
hadoop实验之创业有感
hadoop·docker·团队开发
G丶AEOM1 小时前
Docker快速入门
docker
大熊程序猿2 小时前
airflow docker 安装
运维·docker·容器
带电的小王3 小时前
Docker在Ubuntu上安装
ubuntu·docker
fanruitian4 小时前
docker 为单个容器设置代理
运维·docker·容器
梁萌4 小时前
Docker快速安装Tomcat
docker·容器·tomcat·镜像
Doker 多克5 小时前
IntelliJ IDEA Docker集成
spring cloud·docker·intellij-idea
筏镜12 小时前
调整docker bridge地址冲突,通过bip调整 bridge地址
java·docker·eureka
韩俊强17 小时前
使用Docker部署一个Node.js项目
docker·容器·node.js