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
账号: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