随笔分类 -  docker

上一页 1 ··· 3 4 5 6 7 8 9 下一页

cgcreate cgexec cgroup
摘要:首先在 cpu 子系统下面创建了一个 halfapi 的子节点:cgcreate abc:abc -g cpu:halfapi。 然后在配置文件中写入配置数据:echo 50000 > /cgroup/cpu/halfapi/cpu.cfs_quota_us。cpu.cfs_quota_us中的默认 阅读全文

posted @ 2020-11-23 17:31 tycoon3 阅读(983) 评论(0) 推荐(0)

docker Linux namespace(五)-Mount
摘要:众所周一,在Linux上使用容器有个天大的好处,就是可以把不同的系统打包运行,虽然你的宿主机可能就是CentOS,但是如果使用了容器技术,你可以同时运行alpline,Debian,Ubuntu等其他的你喜欢的发行版,关键是这些容器共享宿主的资源,因此,每个容器是非常轻量级的,不同虚拟机,这是如何做 阅读全文

posted @ 2020-11-18 16:32 tycoon3 阅读(560) 评论(0) 推荐(0)

prepareRootfs +createDevices
摘要:// prepareRootfs sets up the devices, mount points, and filesystems for use // inside a new mount namespace. It doesn't set anything as ro. You must c 阅读全文

posted @ 2020-11-18 15:21 tycoon3 阅读(178) 评论(0) 推荐(0)

Docker的核心原理
摘要:Linux Namespace 技术与 Docker 原理浅析 https://creaink.github.io/post/Computer/Linux/Linux-namespace/ 简介 Docker 核心技术主要从以下几个方面实现: 命名空间(namespace):通过进程命名空间,将do 阅读全文

posted @ 2020-11-18 11:56 tycoon3 阅读(685) 评论(0) 推荐(0)

golang fork and docker fork
摘要:背景 在日常的系统编程中,我们经常有这样的需求:fork 多个子进程去执行任务。例如典型的 master-slave 架构便是这样的,fork 调用之后,父进程开始作为管理进程管理子进程,而子进程则开始执行处理请求的代码。但是在Go语言中,由于Go语言屏蔽了进程、线程的概念,而只提供了 gorout 阅读全文

posted @ 2020-11-18 11:47 tycoon3 阅读(272) 评论(0) 推荐(0)

Build Your Own Container Using Less than 100 Lines of Go
摘要:Build Your Own Container Using Less than 100 Lines of Go https://www.infoq.com/articles/build-a-container-golang/ Linux containers in 500 lines of cod 阅读全文

posted @ 2020-11-18 11:10 tycoon3 阅读(411) 评论(0) 推荐(0)

runc cgroup CreateLibcontainerConfig & linuxContainer
摘要:// needsSetupDev returns true if /dev needs to be set up. func needsSetupDev(config *configs.Config) bool { for _, m := range config.Mounts { if m.Dev 阅读全文

posted @ 2020-11-18 11:03 tycoon3 阅读(211) 评论(0) 推荐(0)

runc unshare
摘要:void nsexec(void) unshare(CLONE_NEWUSER) http://www.sel.zju.edu.cn/?p=840 Namespace API提供了三种系统调用接口: ● clone():创建新的进程 ● setns():允许指定进程加入特定的namespace ● 阅读全文

posted @ 2020-11-18 10:46 tycoon3 阅读(209) 评论(0) 推荐(0)

nsenter
摘要:root@pc-01:~# docker ps | grep busybox 807e1730775a busybox "sh" 5 hours ago Up 5 hours optimistic_hermann root@pcl-01:~# docker inspect 807e1730775a 阅读全文

posted @ 2020-11-17 20:30 tycoon3 阅读(395) 评论(1) 推荐(0)

Docker基础技术-Linux Namespace
摘要:写这个系列文章主要是对之前做项目用到的docker相关技术做一些总结,包括docker基础技术Linux命名空间,cgroups,网络等内容。这是第一篇Linux命名空间,主要参考的introduction-to-linux-namespaces和Namespaces in operation 这两 阅读全文

posted @ 2020-11-17 20:12 tycoon3 阅读(278) 评论(0) 推荐(0)

runc network
摘要:Today we’ll be continuing our containerization blog series with a discussion about runC, a tool for launching containers according to Open Container I 阅读全文

posted @ 2020-11-17 20:08 tycoon3 阅读(254) 评论(0) 推荐(0)

Docker 核心技术与实现原理
摘要:提到虚拟化技术,我们首先想到的一定是 Docker,经过四年的快速发展 Docker 已经成为了很多公司的标配,也不再是一个只能在开发阶段使用的玩具了。作为在生产环境中广泛应用的产品,Docker 有着非常成熟的社区以及大量的使用者,代码库中的内容也变得非常庞大。 同样,由于项目的发展、功能的拆分以 阅读全文

posted @ 2020-11-17 11:00 tycoon3 阅读(261) 评论(0) 推荐(0)

Running Containers With OVS-DPDK
摘要:OVS-DPDK 是什么 OVS-DPDK 为容器提供网络支持 基于 DPDK 的应用 基于内核协议栈的应用 OVS-DPDK 容器网络方案验证 搭建 DPDK 环境 编译运行 OVS-DPDK DPDK 应用的容器 基于内核协议栈的应用(使用 veth pair 连接 ovs-dpdk) 基于内核 阅读全文

posted @ 2020-11-12 15:23 tycoon3 阅读(2206) 评论(0) 推荐(1)

Dockerfile CMD 和ENTRYPOINT
摘要:https://www.cnblogs.com/sparkdev/p/8461576.html 阅读全文

posted @ 2020-11-12 11:58 tycoon3 阅读(55) 评论(0) 推荐(0)

Analyzing Docker Container Performance With Native Tools
摘要:Containerization is changing how organizations deploy and use software. You can now deploy almost any software reliably with just the docker run comma 阅读全文

posted @ 2020-10-30 15:23 tycoon3 阅读(139) 评论(0) 推荐(0)

SPDK and Containers
摘要:SPDK and Containers This is a living document as there are many ways to use containers with SPDK. As new usages are identified and tested, they will b 阅读全文

posted @ 2020-10-30 14:40 tycoon3 阅读(329) 评论(0) 推荐(0)

kata cgroup
摘要:## 检查进程所处 cgroup root@DESKTOP-UMENNVI:~/cgroup-test/cgroup-1# cat /proc/1945/cgroup 14:name=cgroup-test:/cgroup-1 13:rdma:/ 12:pids:/ 11:hugetlb:/ 10: 阅读全文

posted @ 2020-10-30 14:11 tycoon3 阅读(216) 评论(0) 推荐(0)

Measure execution time of docker container
摘要:Container Performance Analysis at DockerCon 2017 https://www.slideshare.net/brendangregg/container-performance-analysis Run Process Debug Tools in Con 阅读全文

posted @ 2020-10-29 19:22 tycoon3 阅读(169) 评论(0) 推荐(0)

docker mount
摘要:root@ubuntu:/home/ubuntu# docker run --rm -it --name broken-container --mount type=bind,source=/tmp,target=/usr nginx:latest /docker-entrypoint.sh: No 阅读全文

posted @ 2020-10-27 16:21 tycoon3 阅读(340) 评论(0) 推荐(0)

Create an OCI bundle
摘要:Running standalone It is possible to start the runtime without a container manager. This is mostly useful for testing and debugging purposes. Create a 阅读全文

posted @ 2020-10-23 18:56 tycoon3 阅读(173) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 下一页

导航