Skip to content

Commit 3f90044

Browse files
committed
docs: add nerdctl container buildkitd address docs
Signed-off-by: Wei Zhang <[email protected]>
1 parent 4a778a2 commit 3f90044

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ Join `#buildkit` channel on [Docker Community Slack](https://dockr.ly/comm-slack
4242
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
4343
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
4444

45-
4645
- [Used by](#used-by)
4746
- [Quick start](#quick-start)
4847
- [Starting the `buildkitd` daemon](#starting-the-buildkitd-daemon)
@@ -72,6 +71,7 @@ Join `#buildkit` channel on [Docker Community Slack](https://dockr.ly/comm-slack
7271
- [Load balancing](#load-balancing)
7372
- [Containerizing BuildKit](#containerizing-buildkit)
7473
- [Podman](#podman)
74+
- [Nerdctl](#nerdctl)
7575
- [Kubernetes](#kubernetes)
7676
- [Daemonless](#daemonless)
7777
- [Opentracing support](#opentracing-support)
@@ -672,6 +672,16 @@ buildctl --addr=podman-container://buildkitd build --frontend dockerfile.v0 --lo
672672

673673
`sudo` is not required.
674674

675+
### Nerdctl
676+
To connect to a BuildKit daemon running in a Nerdctl container, use `nerdctl-container://` instead of `docker-container://`.
677+
678+
```bash
679+
nerdctl run -d --name buildkitd --privileged moby/buildkit:latest
680+
buildctl --addr=nerdctl-container://buildkitd build --frontend dockerfile.v0 --local context=. --local dockerfile=. --output type=oci | nerdctl load
681+
```
682+
683+
`sudo` is not required.
684+
675685
### Kubernetes
676686

677687
For Kubernetes deployments, see [`examples/kubernetes`](./examples/kubernetes).

0 commit comments

Comments
 (0)