关于Docker
Something about docker.
“Build, Ship and Run”
内核容器
- LXC
- Linux Container, 内核容器技术
- Cgroup, Namespace, rootfs
容器文件系统
1 | # 控制文件系统根目录的位置 |
镜像的叠加
1 | docker history shawnyan/docker:ol7 |
Docker Hub
公有仓库 /私有仓库
在CentOS上安装docker-registry
1 | docker run -d -e SETTINGS_FLAVOR=dev -e STORAGE_PATH=/tmp/registry -v /opt/data/registry:/tmp/registry -p 5000:5000 registry |
私有仓库位置:/opt/data/registry
可以把项目https://github.com/docker/docker-registry.git
克隆到本地
Docker Tools
1 | dockviz images -d | dot -Tpng -o images.png |
- Docker Compose
docker-compose.yml
- Docker Machine
Docker ToolBox host ip
1 | docker-machine ip |
- Swarm
Docker集群
“swap, plug and play”
Reference
- Title: 关于Docker
- Author: 严少安
- Created at: 2018-02-18 15:01:01
- Updated at: 2018-02-18 15:01:01
- Link: https://shawnyan.cn/2018/docker/docker-intro/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments