极客时间运维进阶训练营第一周作业
1. 梳理各 Namespace 的作用
https://en.wikipedia.org/wiki/Linux_namespaces
| 简称 | 全名 | 作用 |
| ---- | ---- | ---- |
| MNT Namespace | Mount Namespace | 磁盘挂载点、文件系统的隔离 |
| IPC Namespace | Interprocess Communication Namespace | 进程间通信资源隔离 |
| UTS namespaces | UNIX Time-Sharing | 主机名隔离 |
| PID namespace | Process ID namespace | 进程隔离 |
| Net namespace | Network namespace | 网络隔离 |
| User namespace | User namespace | 用户隔离 |
| Time namespace | Time namespace | 时间隔离 |
| syslog namespace | syslog namespace | syslog 隔离 |
| cgroup namespace | Control group namespace | 进程所属的控制组的身份隔离 |
2. 使用 apt/yum/ 二进制安装指定版本的 Docker
https://docs.docker.com/engine/install/binaries/
Download the static binary archive. Go to https://download.docker.com/linux/static/stable/x86_64/
cd /opt/
ll
Extract the archive using the tar
utility.
Move the binaries to a directory on your executable path, such as /usr/bin/
cp docker/* /usr/bin/
Start the Docker daemon:
dockerd &
docker --version
docker info
docker run hello-world
https://docs.docker.com/engine/install/linux-postinstall/
Create the
docker
group.$ sudo groupadd docker
Add your user to the
docker
group.$ sudo usermod -aG docker $USER
评论