katka-container搭建
kata-container架构#
https://katacontainers.io/
https://katacontainers.io/baidu //百度在kata的实践应用
https://github.com/kata-containers/kata-containers
https://github.com/kata-containers/runtime //kata-runtime
https://github.com/kata-containers/tests/tree/master/cmd/kata-manager //脚本一键安装
https://github.com/kata-containers/runtime#architecture-overview
https://github.com/kata-containers/documentation/tree/master/install //官方安装指南
kata插件替换runc接管容器声明周期#
实验环境#
vmware-workstation
centos7.6
online internet
虚机开启CPU虚拟化#
docker部署#
centos7.6在线yum安装docker-ce
centos7下docker二进制安装
kata-container#
https://github.com/kata-containers/tests/tree/master/cmd/kata-manager //官方地址
[root@c-3-104 ~]# chmod +x kata-manager.sh
[root@c-3-104 ~]# ./kata-manager.sh -h //kata-manager.sh 帮助命令
Usage: kata-manager.sh [options] [command]
Description: Install and configure Kata Containers.
Options:
-c <file> : Specify full path to configuration file
(default: '/etc/kata-containers/configuration.toml'). //安装后默认读取配置文件
-f : Force mode (for package removal).
-h : Display this help.
-n : No execute mode (a.k.a. dry run). Show the commands that kata-manager would run,
without doing any change to the system.
-v : Verbose output.
Commands:
configure-image : Configure the runtime to use the specified image.
configure-initrd : Configure the runtime to use the specified initial ramdisk.
disable-debug : Turn off all debug options.
enable-debug : Turn on all debug options for all system components.
install-docker : Only install and configure Docker. //docker
install-docker-system : Install and configure Docker (implies 'install-packages') and optionally specify Kata release. //docker+kata
install-packages : Install the packaged version of Kata Containers only and optionally specify release. //kata
remove-docker : Uninstall Docker only.
remove-docker-system : Uninstall Docker and Kata packages.
remove-packages : Uninstall the packaged version of Kata Containers.
reset-config : Undo changes to the runtime configuration [1].
[root@c-3-104 ~]# ./kata-manager.sh install-packages //联网下载安装对应的包,时间有点长
修改docker启动默认Runtime#
[root@c-3-104 ~]# whereis kata-runtime //查找路径
kata-runtime: /usr/bin/kata-runtime
[root@c-3-104 ~]# mkdir -p /etc/systemd/system/docker.service.d/
[root@c-3-104 ~]# tee <<EOF >/etc/systemd/system/docker.service.d/kata-containers.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -D --add-runtime kata-runtime=/usr/bin/kata-runtime --default-runtime=kata-runtime
EOF
[root@c-3-104 ~]# systemctl daemon-reload
[root@c-3-104 ~]# systemctl stop docker && systemctl start docker && docker info |grep Runtime
Runtimes: runc kata-runtime
Default Runtime: kata-runtime
[root@c-3-104 ~]# docker run --rm -it alpine sh
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
cbdbe7a5bc2a: Pull complete
Digest: sha256:9a839e63dad54c3a6d1834e29692c8492d93f90c59c978c1ed79109ea4fb9a54
Status: Downloaded newer image for alpine:latest
/ #
/ # ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq state UP qlen 1000
link/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.2/16 brd 172.17.255.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::42:acff:fe11:2/64 scope link
valid_lft forever preferred_lft forever
/ # uname -r
5.4.32-62.1.container //容器内核qemu虚机引导的内核版本
有问题建议执行检查#
Centos在线安装#
https://github.com/kata-containers/documentation/blob/master/install/centos-installation-guide.md
http://download.opensuse.org/repositories/home:/katacontainers:/
katka-container搭建相关推荐
- 威联通NAS使用Container搭建我的世界服务器,带网页管理面板
QNAP使用LXC容器搭建Minecraft游戏服务器,带WEB管理面板 Linux搭建我的世界服务器:https://blog.zeruns.tech/archives/584.html windo ...
- 我的世界(mc) 搭建 Forge 1.17.1 版 服务器教程,可装MOD,带面板
Linux搭建 Minecraft Forge-1.17.1 Java版 服务器教程,可加MOD,带网页管理面板. 视频教程:https://www.bilibili.com/video/BV1bo4 ...
- Linux搭建 我的世界(Minecraft) 1.17.1版 服务器教程
Linux搭建 MC 1.17.1 Java版 服务器教程,带网页管理面板. 视频教程: Linux搭建 我的世界(MC) 1.17.1版 服务器教程,带面板 windows搭建MC服务器教程:htt ...
- 威联通NAS配置1.18.1Minecraft服务器
参考: 威联通NAS使用Container搭建我的世界服务器,带网页管理面板 Ubuntu下怎么退出vim编辑器 我的世界MCSM面板搭建 关于威联通nas开mc服务器的网上教程甚少,写篇博客预防日后 ...
- 我的世界1.12.2 神奇宝贝(精灵宝可梦) 开服教程
Minecraft(MC)1.12.2 整合包 神奇宝贝(精灵宝可梦) 服务器搭建教程,提供服务端和客户端下载,本文服务端系统使用Linux,面板用的MCSM. 服务端和客户端从MCBBS下载的,地址 ...
- 我的世界 1.18.1 Forge版 开服教程,可装MOD,带面板
Minecraft Forge-1.18.1 Java版服务器搭建教程,可加MOD,带网页管理面板. 视频教程:https://www.bilibili.com/video/BV1US4y1K7vK/ ...
- Unable to start embedded container和Consider defining a bean:SpringBoot搭建多模块项目错误
SpringBoot搭建多模块项目错误,我是参照这个网址搭建的 然后搭建过程中就遇到了一些bug:https://blog.csdn.net/hanchao5272/article/details/8 ...
- Container Station搭建个人网盘Nextcloud(Mariadb)
目录 一.Container Station 二.MariaDB安装 三.phpMyAdmin安装及nextcloud对应数据库配置 (一)phpMyAdmin安装 (二)nextcloud对应数据库 ...
- JFrog Container Registry 搭建Docker镜像仓库 (tar.gz 版本)
文章目录 1. 下载安装包 2. 解压 3. 启动软件 4. 防火墙 5. 效果验证 1. 下载安装包 https://www.jfrog.com/ 2. 解压 tar -zxvf jfrog-art ...
- JFrog Container Registry 搭建Docker镜像仓库 (docker 版本)
文章目录 1. 镜像拉取 2. 创建容器 3. 效果验证 1. 镜像拉取 docker pull artifactory-jcr:latest 2. 创建容器 docker run --name ar ...
最新文章
- Dev C++ 运行后显示Failed to execute 文件夹位置: Error 0: 操作成功完成。(只需一步)
- python4 什么时候_Python4要来了?快来看看Python之父怎么说
- NET Framework 4.0 安装失败:安装时发生严重错误
- 看一次广告听30分钟歌 你愿意为QQ音乐新功能买单吗?
- 基于Python+Django+Mysql的蔬菜水果在线购物商城
- nginx作用_nginx作用及其配置
- 面向项目(八)—— #if defined 与 #ifdef
- JS小案例-文本切换效果
- HDU 6134 2017 多校训练:Battlestation Operational(莫比乌斯反演+积性函数)
- win10没有本地组策略怎么办?
- 谈谈项目成本管理遇到的难题及解决措施
- Spring(26)——PathMatchingResourcePatternResolver
- 推荐几个程序员Mac m1max芯片笔记本软件
- 获取股票简单数据:腾讯、新浪、东方财富。。。
- Hydration failed because the initial UI does not match what was rendered on the server.问题原因之一
- 基于Python3.6实现Java版murmurhash算法
- 随手记_英语_学术写作_英文科技论文
- CSS:text-decoration文本装饰
- 《吴恩达深度学习》编程作业-第二周
- Hdmi光纤线标准最高支持8K 60Hz、4K 120Hz、10K@120Hz分辨率的传输
热门文章
- 《Datawhale推荐系统教程》来了!
- ArcGIS教程:根据经验半变异函数拟合模型
- pycharm debug 提示 Python Debugger Extension Available Cython extension speeds up Python debugging
- UI层自动化测试介绍
- 高大上:光学技术“回归”地球整出“彩虹车站”
- Debian改变网卡名称
- loadrunner-介绍
- 赛门铁克ssl证书 仲裁证书
- QQ邮箱模拟登陆(2022.9.12)
- Jmeter事务控制器 Transation Controller