摘要: 转载自:https://tech99.cn/shot/?uuid=CSDN_127827285 关闭了快速启动的选项解决该问题 阅读全文
posted @ 2023-07-27 23:40 雪糕战士 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 打包容器shutdown_Dockerfile同级目录执行sudo docker build -t hello:v0.01 -f shutdown_Dockerfile . 导出docker 容器docker save -o tar名称.tar hello:v0.0.1hello:v0.01 分别代 阅读全文
posted @ 2023-06-01 23:13 雪糕战士 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 原文地址:https://discuss.kubernetes.io/t/the-connection-to-the-server-host-6443-was-refused-did-you-specify-the-right-host-or-port/552/5 sudo -i swapoff - 阅读全文
posted @ 2023-05-10 22:06 雪糕战士 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 出现原因: 运行以下代码 timezone, _ := time.LoadLocation("Asia/Shanghai") 但是 容器内 /usr/share/zoneinfo/Asia/Shanghai 路径没有Shanghai文件 导致panic: time: missing Location 阅读全文
posted @ 2023-02-16 17:29 雪糕战士 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 手动创建etcd挂载目录 volumes: - "./etcd/data:/bitnami/etcd/data" 我在docker-compose 文件同级目录下创建etcd/data文件夹,再启动即可 msg":"discovery failed","error":"cannot access d 阅读全文
posted @ 2022-12-03 17:59 雪糕战士 阅读(1553) 评论(0) 推荐(0) 编辑
摘要: docker 中安装traefik 可以参考这篇文章 https://q.shanyue.tech/deploy/traefik.html#traefik-%E6%90%AD%E5%BB%BA docker-compose.yaml 文件配置 version: '3.3' networks: tra 阅读全文
posted @ 2022-10-18 19:57 雪糕战士 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 取消安全启动选项 阅读全文
posted @ 2022-06-24 10:03 雪糕战士 阅读(4492) 评论(0) 推荐(0) 编辑
摘要: 打包命令: fyne package -os darwin -icon myapp.png fyne package -os linux -icon myapp.png fyne package -os windows -icon myapp.png 阅读全文
posted @ 2022-04-06 22:37 雪糕战士 阅读(128) 评论(0) 推荐(0) 编辑
摘要: type Page []struct { MenuID int `json:"menu_id"` Title string `json:"title"` Path string `json:"path"` Key string `json:"key"` ParentKey string `json: 阅读全文
posted @ 2022-03-14 14:54 雪糕战士 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 1、docker rmi 镜像id(imageID) 删除失败就使用docker rmi -f imageID 来进行删除 2、将go程序打包为docker镜像指令: dockerfile文件内容: FROM golang:alpineRUN mkdir /appWORKDIR /appADD . 阅读全文
posted @ 2022-02-17 23:03 雪糕战士 阅读(16) 评论(0) 推荐(0) 编辑