go helloworld 部署到k8s
摘要:
打包容器shutdown_Dockerfile同级目录执行sudo docker build -t hello:v0.01 -f shutdown_Dockerfile . 导出docker 容器docker save -o tar名称.tar hello:v0.0.1hello:v0.01 分别代
The connection to the server 192.168.149.131:6443 was refused - did you specify the right host or port?
摘要:
原文地址: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 -
docker 环境运行go项目提示: panic: time: missing Location in call to Time.In
摘要:
出现原因: 运行以下代码 timezone, _ := time.LoadLocation("Asia/Shanghai") 但是 容器内 /usr/share/zoneinfo/Asia/Shanghai 路径没有Shanghai文件 导致panic: time: missing Location
etcd open /bitnami/etcd/data/.touch: permission denied 权限不足 msg":"discovery failed","error":"cannot access data directory: mkdir /bitnami/etcd/data: permission
摘要:
手动创建etcd挂载目录 volumes: - "./etcd/data:/bitnami/etcd/data" 我在docker-compose 文件同级目录下创建etcd/data文件夹,再启动即可 msg":"discovery failed","error":"cannot access d
traefik
摘要:
docker 中安装traefik 可以参考这篇文章 https://q.shanyue.tech/deploy/traefik.html#traefik-%E6%90%AD%E5%BB%BA docker-compose.yaml 文件配置 version: '3.3' networks: tra
fyne
摘要:
打包命令: fyne package -os darwin -icon myapp.png fyne package -os linux -icon myapp.png fyne package -os windows -icon myapp.png
内嵌结构体赋值
摘要:
type Page []struct { MenuID int `json:"menu_id"` Title string `json:"title"` Path string `json:"path"` Key string `json:"key"` ParentKey string `json:
docker 笔记
摘要:
1、docker rmi 镜像id(imageID) 删除失败就使用docker rmi -f imageID 来进行删除 2、将go程序打包为docker镜像指令: dockerfile文件内容: FROM golang:alpineRUN mkdir /appWORKDIR /appADD .