Skip to content

Commit 639d33a

Browse files
authored
Merge pull request moby#3468 from zwpaper/dev-docs
docs: add nerdctl container buildkitd address docs
2 parents c0b6de3 + 3f90044 commit 639d33a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Join `#buildkit` channel on [Docker Community Slack](https://dockr.ly/comm-slack
7171
- [Load balancing](#load-balancing)
7272
- [Containerizing BuildKit](#containerizing-buildkit)
7373
- [Podman](#podman)
74+
- [Nerdctl](#nerdctl)
7475
- [Kubernetes](#kubernetes)
7576
- [Daemonless](#daemonless)
7677
- [Opentracing support](#opentracing-support)
@@ -676,6 +677,16 @@ buildctl --addr=podman-container://buildkitd build --frontend dockerfile.v0 --lo
676677

677678
`sudo` is not required.
678679

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

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

0 commit comments

Comments
 (0)