• containerd安装教程


    一、下载containerd安装包

    wget https://github.com/containerd/containerd/releases/download/v1.4.3/cri-containerd-cni-1.4.3-linux-amd64.tar.gz

    二、解压安装包

    tar  -zxvf  cri-containerd-cni-1.4.3-linux-amd64.tar.gz

    三、移除不需要的文件(以下都在解压包下操作)

    rm -rf etc/cni/
    rm -rf opt/

    #启动
    systemctl status containerd
    systemctl enable containerd
    systemctl restart containerd

    四、生成默认的配置文件

    containerd config  default > /etc/containerd/config.toml

    修改配置文件:oom_score = -999

    五、基本用法

    NAME:
       ctr - 
            __
      _____/ /______
     / ___/ __/ ___/
    / /__/ /_/ /
    \___/\__/_/
    
    containerd CLI
    
    
    USAGE:
       ctr [global options] command [command options] [arguments...]
    
    VERSION:
       v1.4.3
    
    DESCRIPTION:
       
    ctr is an unsupported debug and administrative client for interacting
    with the containerd daemon. Because it is unsupported, the commands,
    options, and operations are not guaranteed to be backward compatible or
    stable from release to release of the containerd project.
    
    COMMANDS:
       plugins, plugin            provides information about containerd plugins
       version                    print the client and server versions
       containers, c, container   manage containers
       content                    manage content
       events, event              display containerd events
       images, image, i           manage images
       leases                     manage leases
       namespaces, namespace, ns  manage namespaces
       pprof                      provide golang pprof outputs for containerd
       run                        run a container
       snapshots, snapshot        manage snapshots
       tasks, t, task             manage tasks
       install                    install a new package
       oci                        OCI tools
       shim                       interact with a shim directly
       help, h                    Shows a list of commands or help for one command
    
    GLOBAL OPTIONS:
       --debug                      enable debug output in logs
       --address value, -a value    address for containerd's GRPC server (default: "/run/containerd/containerd.sock") [$CONTAINERD_ADDRESS]
       --timeout value              total timeout for ctr commands (default: 0s)
       --connect-timeout value      timeout for connecting to containerd (default: 0s)
       --namespace value, -n value  namespace to use with commands (default: "default") [$CONTAINERD_NAMESPACE]
       --help, -h                   show help
       --version, -v                print the version
  • 相关阅读:
    分层领域模型
    JAVA集合Set 交集、差集、并集
    http状态码301和302详解及区别
    设计模式(16) 命令模式
    设计模式(15) 解释器模式
    设计模式(14) 模板方法模式
    设计模式(13) 职责链模式
    设计模式(12) 代理模式
    设计模式(11) 享元模式
    设计模式(10) 外观模式
  • 原文地址:https://www.cnblogs.com/dszazhy/p/15152033.html
Copyright © 2020-2023  润新知