FreeBSD: Linux Container Support and BuildKit Integration
Adjusted documentation in docs/freebsd.md and extended runtime check in buildkitutil to encompass FreeBSD alongside Linux. Signed-off-by: Artem Khramov <akhramov@pm.me>
This commit is contained in:
parent
2486f7b329
commit
424bf4ed3f
|
|
@ -14,10 +14,16 @@ instructions in the respective repositories.
|
|||
|
||||
## Usage
|
||||
|
||||
You can use the `knast/freebsd` image to run a standard FreeBSD 13 jail:
|
||||
You can use the `dougrabson/freebsd13.2-small` image to run a FreeBSD 13 jail:
|
||||
|
||||
```sh
|
||||
nerdctl run --net none -it knast/freebsd:13-STABLE
|
||||
nerdctl run --net none -it dougrabson/freebsd13.2-small
|
||||
```
|
||||
|
||||
Alternatively use `--platform` parameter to run linux containers
|
||||
|
||||
```sh
|
||||
nerdctl run --platform linux --net none -it amazonlinux:2
|
||||
```
|
||||
|
||||
|
||||
|
|
@ -25,10 +31,3 @@ nerdctl run --net none -it knast/freebsd:13-STABLE
|
|||
|
||||
- :warning: CNI & CNI plugins are not yet ported to FreeBSD. The only supported
|
||||
network type is `none`
|
||||
- :warning: buildkit is not yet ported to FreeBSD.
|
||||
- [ ] https://github.com/tonistiigi/fsutil/pull/109 - buildkit dependency
|
||||
- [ ] https://github.com/moby/moby/pull/42866 - buildkit dependency
|
||||
- :warning: Linuxulator containers support is
|
||||
WIP. https://github.com/containerd/nerdctl/issues/280 https://github.com/containerd/containerd/pull/5480
|
||||
|
||||
- :bug: `nerdctl compose` commands currently don't work. https://github.com/containerd/containerd/pull/5991
|
||||
|
|
|
|||
|
|
@ -144,8 +144,8 @@ func PingBKDaemon(buildkitHost string) error {
|
|||
}
|
||||
|
||||
func pingBKDaemon(buildkitHost string) (output string, _ error) {
|
||||
if runtime.GOOS != "linux" {
|
||||
return "", errors.New("only linux is supported")
|
||||
if runtime.GOOS != "linux" && runtime.GOOS != "freebsd" {
|
||||
return "", errors.New("only linux and freebsd are supported")
|
||||
}
|
||||
buildctlBinary, err := BuildctlBinary()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue