Skip to content

Commit

Permalink
Merge pull request #26 from ktock/nerdctl-install
Browse files Browse the repository at this point in the history
README: Add doc about `nerdctl builder debug`
  • Loading branch information
ktock committed May 19, 2022
2 parents 30a9b34 + a424e83 commit 7f4c51a
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,18 @@ hi

Available from https://github.com/ktock/buildg/releases

### Building using make
### Rootless mode

Install and use [`buildg.sh`](./extras/buildg.sh).
[RootlessKit](https://github.com/rootless-containers/rootlesskit) and [slirp4netns](https://github.com/rootless-containers/slirp4netns) are needed.

```
$ buildg.sh debug /path/to/context
```

The doc in BuildKit project for troubleshooting: https://github.com/moby/buildkit/blob/master/docs/rootless.md#troubleshooting

### Building binary using make

Go 1.18+ is needed.

Expand All @@ -130,17 +141,14 @@ $ make
$ sudo make install
```

### Rootless mode
### nerdctl

Install and use [`buildg.sh`](./extras/buildg.sh).
[RootlessKit](https://github.com/rootless-containers/rootlesskit) and [slirp4netns](https://github.com/rootless-containers/slirp4netns) are needed.
[nerdctl](https://github.com/containerd/nerdctl) project provides buildg as a subcommand since v0.20.0: https://github.com/containerd/nerdctl/blob/v0.20.0/docs/builder-debug.md

```
$ buildg.sh debug /tmp/mybuild
$ nerdctl builder debug /path/to/build/context
```

The doc in BuildKit project for troubleshooting: https://github.com/moby/buildkit/blob/master/docs/rootless.md#troubleshooting

## Motivation

Debugging a large and complex Dockerfile isn't easy and can take a long time.
Expand Down

0 comments on commit 7f4c51a

Please sign in to comment.