zoukankan      html  css  js  c++  java
  • 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 jni字符串转换
    Python读取PE文件(exe/dll)中的时间戳
    深度学习word embedding猜测性别初探
    闪存内容汇编(截止20170405)
    如何自动化安装字体(命令行批量)
    如何分析进程的内存占用问题
    Python print报ascii编码异常的靠谱解决办法
    Linux界面自动化测试框架不完全汇总
    Qt实现同步(阻塞式)http get等网络访问操作
    基于第三方开源库的OPC服务器开发指南(4)——后记:与另一个开源库opc workshop库相关的问题
  • 原文地址:https://www.cnblogs.com/dszazhy/p/15152033.html
Copyright © 2011-2022 走看看