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

相关推荐
程序员JerrySUN16 分钟前
熟悉的 Docker,陌生的 Podman
linux·docker·容器·系统架构·podman
gobeyye1 小时前
Docker 用法详解
运维·docker·容器
小灰灰__1 小时前
Linux离线安装Docker命令,简单镜像操作
linux·docker·eureka
雪碧聊技术3 小时前
Docker3:docker基础1
运维·docker·容器·docker常见命令
大虾别跑5 小时前
docker安装zabbix +grafana
docker·zabbix·grafana
FLGB6 小时前
Docker 安装单机版mysql 并持久化数据
mysql·docker·容器
杰哥的技术杂货铺7 小时前
Centos 7 安装 Docker 最新版本
linux·docker·centos
moxiaoran57537 小时前
Centos使用docker搭建Graylog日志平台
docker·centos·graylog
小柒xq15 小时前
使用docker compose安装部署gitlab
docker·容器·gitlab