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