docker快速安装

curl -fsSL https://ysicing.me/hack/docker/install.sh | bash

做了如下设置

{
  "exec-opts": ["native.cgroupdriver=systemd"],
  "registry-mirrors": ["https://dockerhub.azk8s.cn","https://reg-mirror.qiniu.com"],
  "bip": "172.30.42.1/16",
  "max-concurrent-downloads": 10,
  "log-driver": "json-file",
  "log-level": "warn",
  "log-opts": {
    "max-size": "20m",
    "max-file": "2"
  },
  "storage-driver": "overlay2"
}

docker常用工具安装

docker run --rm -v /usr/local/bin:/sysdir ysicing/tools tar zxf /pkg.tgz -C /sysdir

内置了

etcdctl
helm(v3)
helminit // 初始化helm, 默认配置的是mirror.azure.cn
docker-compose
calicoctl
ctop
cclear (清理退出容器)
din (进入容器 din <cname/>cid> ash/bash(默认)/sh)
dps (容器状态)
etcdcli (特别支持k8s集群的etcd)
kbtoken (查看kuboard admin用户token)
kdtoken (查看dashboard-admin 用户token)

upgrade-tools // 升级二进制
Copyright © 2020 | 仅供学习参考,不可用于其他途径. all right reserved,powered by Gitbook Updated at 2020-04-05 16:00:39

results matching ""

    No results matching ""