随笔分类 -  Docker

摘要:参考 https://redis.io/docs/latest/operate/oss_and_stack/install/archive/install-stack/docker/ 环境查看 系统环境 # cat /etc/redhat-release Rocky Linux release 9. 阅读全文
posted @ 2025-10-11 09:39 minseo 阅读(15) 评论(0) 推荐(0)
摘要:创建用户并授权 需要使用本地地址127.0.0.1连接MySQL数据库否则可能授权失败 > create user zentao@'%' identified by 'password'; > grant all on zentao.* to zentao@'%'; > flush privileg 阅读全文
posted @ 2025-10-10 10:38 minseo 阅读(9) 评论(0) 推荐(0)
摘要:docker容器如果日志太多使用命令查看日志会一直刷很久才到尾部 docker logs -f 容器ID 可以使用以下命令直接查看最后一些行日志 docker logs -f --tail 2000 b459e5d7a4eb 阅读全文
posted @ 2025-09-26 17:16 minseo 阅读(23) 评论(0) 推荐(0)
摘要:环境查看 系统环境 # uname -a Linux CentOS7K8SMaster02062 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux # cat 阅读全文
posted @ 2025-08-20 17:32 minseo 阅读(46) 评论(0) 推荐(0)
摘要:Github站点 https://github.com/linshenkx/prompt-optimizer 下载代码 # git clone https://github.com/linshenkx/prompt-optimizer.git 修改配置文件 # 复制配置文件 # cp env.loc 阅读全文
posted @ 2025-07-30 10:13 minseo 阅读(133) 评论(0) 推荐(0)
摘要:需求 在docker-compose.yml的配置文件中有部分镜像设置的tag是latest 在启动的时候会自动更新image,但是假如网络不好则会导致启动失败 如下图所示 [+] Running 2/2 ✘ backend Error 15.6s ✘ db-migration Error 15.6 阅读全文
posted @ 2025-06-29 11:45 minseo 阅读(48) 评论(0) 推荐(0)
摘要:官网 https://opentelemetry.io/ 环境查看 系统环境 # cat /etc/redhat-release Rocky Linux release 9.3 (Blue Onyx) # uname -a Linux Rocky9Opentelemetry003078 5.14.0 阅读全文
posted @ 2025-03-20 09:57 minseo 阅读(378) 评论(0) 推荐(0)
摘要:环境查看 系统环境 # cat /etc/redhat-release Rocky Linux release 9.4 (Blue Onyx) # uname -a Linux RockyEs01003081 5.14.0-427.35.1.el9_4.x86_64 #1 SMP PREEMPT_D 阅读全文
posted @ 2025-03-06 17:18 minseo 阅读(177) 评论(0) 推荐(0)
摘要:Github https://github.com/louislam/uptime-kuma 环境查看 系统环境 # cat /etc/redhat-release Rocky Linux release 9.3 (Blue Onyx) # uname -a Linux Rocky9Uptimeku 阅读全文
posted @ 2025-02-12 11:59 minseo 阅读(111) 评论(0) 推荐(0)
摘要:官网 环境查看 系统环境 # cat /etc/redhat-release Rocky Linux release 9.3 (Blue Onyx) # uname -a Linux RockyTemplete 5.14.0-362.18.1.el9_3.0.1.x86_64 #1 SMP PREE 阅读全文
posted @ 2025-02-08 16:14 minseo 阅读(812) 评论(0) 推荐(0)
摘要:官网 https://www.portainer.io/ 帮助文档 https://docs.portainer.io/ 简介 Portainer 是一个开源的 Docker 和 Kubernetes 管理工具,提供了一个直观的 Web 界面,用于简化容器、镜像、网络、卷等资源的管理。它支持 Doc 阅读全文
posted @ 2025-02-07 13:53 minseo 阅读(1300) 评论(0) 推荐(0)
摘要:要清理Docker,你可以使用以下命令: 清理停止的容器、未使用的网络和悬挂的镜像: # docker system prune 如果你想要清理所有未使用的对象(包括停止的容器、网络、悬挂的镜像等),可以添加 -a 参数: # docker system prune -a 清理所有未使用的镜像而不是 阅读全文
posted @ 2025-01-10 08:28 minseo 阅读(56) 评论(0) 推荐(0)
摘要:参考 https://www.zentao.net/book/zentaopms/586.html 备份数据 本次升级使用的是pvc挂载的禅道数据,使用docker启动的也是一样的 数据是挂载在nfs动态存储盘,进入到pvc目录备份一份即可 为以防万一MySQL数据也是有mysqldump备份一份 阅读全文
posted @ 2025-01-09 15:59 minseo 阅读(164) 评论(0) 推荐(0)
摘要:需求 一个docker镜像如果正常启动可以使用docker exec命令进入容器查看内容 假如docker镜像有文件则无法启动无法查看内容,那么怎么才能查看内部内容呢 使用容器创建 创建运行容器 # docker create nginx nginx 导出 查询id导出 可以导出启动失败的任何容器 阅读全文
posted @ 2024-12-26 15:49 minseo 阅读(278) 评论(0) 推荐(0)
摘要:参考: Github地址 https://github.com/casdoor/casdoor?tab=readme-ov-file 帮助文档 https://casdoor.org/zh/docs/basic/server-installation/ Casdoor 可为网页和应用程序用户的登录请 阅读全文
posted @ 2024-11-04 15:09 minseo 阅读(323) 评论(0) 推荐(0)
摘要:在使用Dockerfile制作镜像时启动命令CMD时不能写完整启动命令需要使用[]把命令间隔开来 示例如下 CMD ["python","-m","vllm.entrypoints.openai.api_server","--model","/app","--max_model_len","4096 阅读全文
posted @ 2024-10-29 17:52 minseo 阅读(14) 评论(0) 推荐(0)
摘要:参考: 安装Docker插件 https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html Unbntu使用Docker调用GPU https://blog.csdn.net/d 阅读全文
posted @ 2024-10-12 11:06 minseo 阅读(531) 评论(0) 推荐(0)
摘要:环境查看 系统环境 # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 24.04 LTS Release: 24.04 Codename: noble # uname - 阅读全文
posted @ 2024-09-18 11:03 minseo 阅读(152) 评论(0) 推荐(0)
摘要:以下方式2024-09-14在CentOS测试有效 1.修改系统yum # 文件路径 /etc/yum.repos.d/CentOS-Vault.repo # Vault [Vault-base] name=Vault - CentOS-$releasever - Base baseurl=http 阅读全文
posted @ 2024-09-14 16:20 minseo 阅读(146) 评论(0) 推荐(0)
摘要:参考阿里云文档 https://developer.aliyun.com/mirror/docker-ce?spm=a2c6h.13651102.0.0.2cd51b11vxOnXq Docker源无法安装使用国内阿里源安装Docker # step 1: 安装必要的一些系统工具 sudo yum 阅读全文
posted @ 2024-09-13 09:39 minseo 阅读(179) 评论(0) 推荐(0)