cri-impl

command module
v0.0.0-...-fcfc175 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 1 Imported by: 0

README

cri-impl

目标: 仿照 ori-o,实现 ori 接口,能给 kubelet 调用

版本

  • go version go1.17 linux/amd64
  • CentOS 7
  • Docker 1.13.1

git clone  https://github.com/tluo-github/cri-impl.git
cd cri-impl
# 导入alpine 镜像 rootfs
make test/data/rootfs_alpine
# 预创建目录
make pre_mkdir
# 构建命令
make linux

# 启动守护进程
./bin/cri-impl-linux


# 创建 containers
sudo bin/crictl-linux container create --image test/data/rootfs_alpine/ cont1 -- sleep 100
sudo bin/crictl-linux container create --image test/data/rootfs_alpine/ cont2 -- sleep 200

# 查询遍历 containers
sudo bin/crictl-linux container list

# 启动 container 
sudo bin/crictl-linux container start <container_id>

# 停止 container 
sudo bin/crictl-linux container stop <container_id>

# 查询 container 状态
sudo bin/crictl-linux container status <container_id>

# 删除 container 
sudo bin/crictl-linux container remove <container_id>

Documentation

Overview

Copyright © 2022 tluo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
ctl
cmd
pkg
cri
oci

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL