presentation held at SUSE Linux Expert Forum December 2014
Linux container history and Linux namespaces
examples include:
* Move a VPN connection to its own namespace(p 25)
* User namespaces demo(p 28)
see collection of useful articles and advanced container usecases pp 29
An introduction to Linux Container, Namespace & Cgroup.
Virtual Machine, Linux operating principles. Application constraint execution environment. Isolate application working environment.
How to improve the network of Docker? How to integrate with OpenVSwitch? How to apply more fine-grained QoS limitation and monitor the resource usage of containers? How to improve Docker in non-intrusive ways? This slides shared by Li Yulai, the Chief Architect of SpeedyCloud, is to answer questions above. Visit http://www.speedycloud.cn to find out more.
17. In an user namespace
•マッピングなしでuser namespaceをunshare
I have no name!@miko:/proc/640$ ls -la /usr/bin/sudo
-rwsr-xr-x 1 65534 65534 142792 May 9 15:58 /usr/bin/sudo
!
•通常の状態
I have no name!@miko:/proc/640$ exit
logout
masami@miko:~$ ls -la /usr/bin/sudo
-rwsr-xr-x 1 root root 142792 May 9 15:58 /usr/bin/sudo
18. how to uid/gid mapping
1. clone(2)を呼ぶ
1. CLONE_NEWUSERをflagsにセット
2. exec()系のシステムコールを呼ぶ前にマッピングを行う
1. /proc/<child process pid>/uid_map
2. /proc/<child process pid>/gid_map
3. exec()系の関数を呼んで新たなプログラムを実行