关于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.
if (hexo-config('comment.enable') == true && hexo-config('comment.system') != "") {
if (hexo-config('comment.system') == "waline") {
@require "./waline.styl"
} else if (hexo-config('comment.system') == "gitalk") {
@require "./gitalk.styl"
} else if (hexo-config('comment.system') == "twikoo") {
@require "./twikoo.styl"
}
}
.comments-container
display inline-block
margin-top $spacing-unit
width 100%
#comment-anchor
width 100%
height 10px
.comment-area-title
width 100%
margin 10px 0
font-size 1.38rem
color var(--default-text-color)
font-family 'Consolas', '宋体', sans-serif
font-weight bold
i
color var(--default-text-color)
+redefine-tablet()
margin 5px 0
font-size 1.2rem