docker_practice/opensource/linuxkit.md

52 lines
1.2 KiB
Go
Raw Normal View History

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