[docker]更新容器中镜像版本

从peccore-dev仓库拉取镜像

复制代码
docker pull 10.12.135.238:8060/peccore-dev/configserver:v1.13.45

如果报错,请参考docker拉取镜像失败,添加仓库地址

修改/etc/CET/Common/peccore-docker-compose.yml文件中容器的版本,为刚刚拉取的版本

bash 复制代码
# 配置中心
  configserver:
    image: 10.12.135.238:8060/peccore-dev/configserver:v1.13.45
    restart: unless-stopped
    pid: host
    ipc: host
    network_mode: "host"
    privileged: true
    volumes:
      - /dev/shm:/dev/shm
      - /etc/CET/Common/:/etc/CET/Common/
      - /opt/CET/Common/.base/base.ini:/etc/CET/Common/base.ini
      - /var/log/CET/Common/log:/var/log/CET/Common/log
      - /opt/CET/Common/scripts:/opt/CET/Common/scripts
      - /opt/CET/Common/dbconn.cfg:/opt/CET/Common/dbconn.cfg
      - /opt/CET/Common/CfgCache:/opt/CET/Common/CfgCache
      - /opt/CET/Common/sqlite3:/opt/CET/Common/sqlite3
      - /opt/CET/Common/language:/opt/CET/Common/language
      - /opt/CET/Common/CGI:/opt/CET/Common/CGI
    command: /opt/CET/Common/ConfigServer.out
    environment:
      TZ: Asia/Shanghai

更新容器

bash 复制代码
docker-compose -f /etc/CET/Common/peccore-docker-compose.yml up -d
相关推荐
无人生还别怕7 小时前
如何搭建docker仓库(轻量级)registry
linux·运维·docker·云原生·容器·registry·openanolisos
YYYing.1 天前
【K8s系列 (一) 】Docker与容器(上篇)
docker·云原生·容器·kubernetes
csdn_aspnet1 天前
使用 Docker 和 RedisInsight 设置 Redis 以进行本地开发
redis·docker·容器·redisinsight
余槐i1 天前
MySQL 8.0 联合索引走错:为什么加了索引查询反而从 200ms 变成 8s
java·spring boot·mysql·docker·性能优化
csdn_aspnet1 天前
如何在本地 Docker 容器中运行 Redis,并使用 Redis Insight 和 Redis CLI 进行管理
redis·docker·容器
且从容.1 天前
Ubuntu 安装 Docker
linux·ubuntu·docker
todoitbo1 天前
我在 Mac 上用 Docker 部署 Nexent:从拉取镜像到接入模型
macos·docker·大模型·ai智能体·nexent·快速入门与环境准备
Goboy1 天前
夯爆了,我被一个一句话接入的免费可观测平台策反了,那一刻我决定放弃用了3年的Prometheus
后端·docker·kubernetes
java_logo2 天前
Docker 部署 Liquibase:轻松搭建数据库变更管理
数据库·docker·容器·数据库管理·liquibase·轩辕镜像·数据库变更
IT利刃出鞘2 天前
Docker Compose--解决修改配置后不生效的问题
运维·docker·容器