docker_practice/opensource/linuxkit.md

52 lines
1.2 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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