docker_practice/opensource/linuxkit.md

52 lines
1.2 KiB
Go
Raw Normal View History

2017-12-08 23:01:04 +08:00
## LinuxKit
`LinuxKit` Docker Linux M 便
macOS Docker nginx Linux
### Linuxkit
```bash
$ brew tap linuxkit/linuxkit
$ brew install --HEAD linuxkit
```
###
```bash
$ git clone -b master --depth=1 https://github.com/linuxkit/linuxkit.git
$ cd linuxkit
```
### Linux
LinuxKit `yaml`
`linuxkit.yml`
`kernel`
`init`
`onboot`
`services`
`files`
```bash
$ linuxkit build linuxkit.yml
```
### Linux
Linux
```bash
$ linuxkit run -publish 8080:80/tcp linuxkit
```
`127.0.0.1:8080` nginx