docker使用

不会特别强调docker具体使用

docker快速安装

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

做了如下设置

{
  "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)
  • docker-compose
  • calicoctl
  • ctop
  • cclear (清理退出容器)
  • din (进入容器 din cid> ash/bash(默认)/sh)
  • dps (容器状态)
  • etcdcli (特别支持k8s集群的etcd)
  • kbtoken (查看kuboard admin用户token)
  • kdtoken (查看dashboard-admin 用户token)
Copyright © 2020 | 仅供学习参考,不可用于其他途径. all right reserved,powered by Gitbook Updated at 2020-01-22 08:01:03

results matching ""

    No results matching ""