github containerd/nerdctl v0.20.0

latest releases: v2.0.0-beta.5, v1.7.6, v2.0.0-beta.4...
2 years ago

This release adds the nerdctl builder debug command for interactive debugging of Dockerfile (#1049, thanks to @ktock).
See https://github.com/containerd/nerdctl/blob/v0.20.0/docs/builder-debug.md

Changes

  • nerdctl builder debug:
    • Add nerdctl builder debug command for interactive debugging of Dockerfile (#1049, thanks to @ktock)
  • nerdctl run:
    • Add restart types on-failure, unless-stopped (#999, thanks to @fahedouch)
    • Add --log-opt flag (#959, thanks to @fahedouch)
    • Add --ipc flag (#1057, thanks to @89luca98)
    • Add bind-nonrecursive mount option (#1044, thanks to @junnplus)
    • -t no longer needs -i to be specified together, and vice versa (#1014)
  • nerdctl rename:
  • nerdctl info:
    • Add --mode=native flag to show full plugin info (#1011)
  • nerdctl-full:
    • Update containerd (1.6.4), runc (1.1.2), BuildKit (0.10.3), slirp4netns (1.2.0), RootlessKit (1.0.1), (#1012, #1025, #1038, #1063)
  • Others:

All changes: https://github.com/containerd/nerdctl/milestone/17?closed=1
Thanks to @89luca89 @Rajpratik71 @fahedouch @junnplus @ktock

About the binaries

  • Minimal (nerdctl-0.20.0-linux-amd64.tar.gz): nerdctl only
  • Full (nerdctl-full-0.20.0-linux-amd64.tar.gz): Includes dependencies such as containerd, runc, and CNI

Minimal

Extract the archive to a path like /usr/local/bin or ~/bin .

tar Cxzvvf /usr/local/bin nerdctl-0.20.0-linux-amd64.tar.gz

-rwxr-xr-x root/root  26677248 2022-05-17 08:13 nerdctl
-rwxr-xr-x root/root     21562 2022-05-17 08:12 containerd-rootless-setuptool.sh
-rwxr-xr-x root/root      7032 2022-05-17 08:12 containerd-rootless.sh

Full

Extract the archive to a path like /usr/local or ~/.local .

tar Cxzvvf /usr/local nerdctl-full-0.20.0-linux-amd64.tar.gz

drwxr-xr-x 0/0               0 2022-05-17 08:28 bin/
-rwxr-xr-x 0/0        25376283 2015-10-21 00:00 bin/buildctl
-rwxr-xr-x 0/0        22855680 2022-05-12 09:42 bin/buildg
-rwxr-xr-x 0/0             349 2022-05-12 09:42 bin/buildg.sh
-rwxr-xr-x 0/0        39666041 2015-10-21 00:00 bin/buildkitd
-rwxr-xr-x 0/0         3339352 2022-05-17 08:22 bin/bypass4netns
-rwxr-xr-x 0/0         4984832 2022-05-17 08:23 bin/bypass4netnsd
-rwxr-xr-x 0/0        54197208 2022-05-17 08:25 bin/containerd
-rwxr-xr-x 0/0         9752576 2021-11-19 07:44 bin/containerd-fuse-overlayfs-grpc
-rwxr-xr-x 0/0           21562 2022-05-17 08:23 bin/containerd-rootless-setuptool.sh
-rwxr-xr-x 0/0            7032 2022-05-17 08:23 bin/containerd-rootless.sh
-rwxr-xr-x 0/0         9650176 2022-05-17 08:25 bin/containerd-shim-runc-v2
-rwxr-xr-x 0/0        58101040 2022-04-13 23:45 bin/containerd-stargz-grpc
-rwxr-xr-x 0/0        19500834 2022-05-17 08:28 bin/ctd-decoder
-rwxr-xr-x 0/0        27515800 2022-05-17 08:24 bin/ctr
-rwxr-xr-x 0/0        28264703 2022-05-17 08:28 bin/ctr-enc
-rwxr-xr-x 0/0        29757648 2022-04-13 23:45 bin/ctr-remote
-rwxr-xr-x 0/0         2461616 2022-05-17 08:28 bin/fuse-overlayfs
-rwxr-xr-x 0/0        67865136 2022-04-08 20:57 bin/ipfs
-rwxr-xr-x 0/0        26644480 2022-05-17 08:23 bin/nerdctl
-rwxr-xr-x 0/0         9443526 2022-05-02 08:24 bin/rootlessctl
-rwxr-xr-x 0/0        10879193 2022-05-02 08:24 bin/rootlesskit
-rwxr-xr-x 0/0        13365448 2022-05-17 08:23 bin/runc
-rwxr-xr-x 0/0         2338128 2022-05-17 08:28 bin/slirp4netns
-rwxr-xr-x 0/0          870496 2022-05-17 08:28 bin/tini
drwxr-xr-x 0/0               0 2022-05-17 08:27 lib/
drwxr-xr-x 0/0               0 2022-05-17 08:27 lib/systemd/
drwxr-xr-x 0/0               0 2022-05-17 08:27 lib/systemd/system/
-rw-r--r-- 0/0            1331 2022-05-17 08:27 lib/systemd/system/buildkit.service
-rw-r--r-- 0/0            1270 2022-05-17 08:22 lib/systemd/system/containerd.service
-rw-r--r-- 0/0             312 2022-05-17 08:27 lib/systemd/system/stargz-snapshotter.service
drwxr-xr-x 0/0               0 2022-05-17 08:27 libexec/
drwxrwxr-x 0/0               0 2022-05-17 08:27 libexec/cni/
-rwxr-xr-x 0/0         3780654 2022-03-09 17:08 libexec/cni/bandwidth
-rwxr-xr-x 0/0         4221977 2022-03-09 17:08 libexec/cni/bridge
-rwxr-xr-x 0/0         9742834 2022-03-09 17:08 libexec/cni/dhcp
-rwxr-xr-x 0/0         4345726 2022-03-09 17:08 libexec/cni/firewall
-rwxr-xr-x 0/0         3811793 2022-03-09 17:08 libexec/cni/host-device
-rwxr-xr-x 0/0         3241605 2022-03-09 17:08 libexec/cni/host-local
-rwxr-xr-x 0/0         3922560 2022-03-09 17:08 libexec/cni/ipvlan
-rwxr-xr-x 0/0         3295519 2022-03-09 17:08 libexec/cni/loopback
-rwxr-xr-x 0/0         3959868 2022-03-09 17:08 libexec/cni/macvlan
-rwxr-xr-x 0/0         3679140 2022-03-09 17:08 libexec/cni/portmap
-rwxr-xr-x 0/0         4092460 2022-03-09 17:08 libexec/cni/ptp
-rwxr-xr-x 0/0         3484284 2022-03-09 17:08 libexec/cni/sbr
-rwxr-xr-x 0/0         2818627 2022-03-09 17:08 libexec/cni/static
-rwxr-xr-x 0/0         3379564 2022-03-09 17:08 libexec/cni/tuning
-rwxr-xr-x 0/0         3920827 2022-03-09 17:08 libexec/cni/vlan
-rwxr-xr-x 0/0         3523475 2022-03-09 17:08 libexec/cni/vrf
drwxr-xr-x 0/0               0 2022-05-17 08:23 share/
drwxr-xr-x 0/0               0 2022-05-17 08:23 share/doc/
drwxr-xr-x 0/0               0 2022-05-17 08:23 share/doc/nerdctl/
-rw-r--r-- 0/0           68844 2022-05-17 08:12 share/doc/nerdctl/README.md
drwxr-xr-x 0/0               0 2022-05-17 08:23 share/doc/nerdctl/docs/
-rw-r--r-- 0/0            3953 2022-05-17 08:12 share/doc/nerdctl/docs/build.md
-rw-r--r-- 0/0            2673 2022-05-17 08:12 share/doc/nerdctl/docs/builder-debug.md
-rw-r--r-- 0/0            3996 2022-05-17 08:12 share/doc/nerdctl/docs/cni.md
-rw-r--r-- 0/0            1927 2022-05-17 08:12 share/doc/nerdctl/docs/compose.md
-rw-r--r-- 0/0            3062 2022-05-17 08:12 share/doc/nerdctl/docs/config.md
-rw-r--r-- 0/0            3192 2022-05-17 08:12 share/doc/nerdctl/docs/cosign.md
-rw-r--r-- 0/0            2435 2022-05-17 08:12 share/doc/nerdctl/docs/dir.md
-rw-r--r-- 0/0             598 2022-05-17 08:12 share/doc/nerdctl/docs/experimental.md
-rw-r--r-- 0/0           13802 2022-05-17 08:12 share/doc/nerdctl/docs/faq.md
-rw-r--r-- 0/0            1306 2022-05-17 08:12 share/doc/nerdctl/docs/freebsd.md
-rw-r--r-- 0/0            2439 2022-05-17 08:12 share/doc/nerdctl/docs/gpu.md
-rw-r--r-- 0/0           13215 2022-05-17 08:12 share/doc/nerdctl/docs/ipfs.md
-rw-r--r-- 0/0            1748 2022-05-17 08:12 share/doc/nerdctl/docs/multi-platform.md
-rw-r--r-- 0/0            3277 2022-05-17 08:12 share/doc/nerdctl/docs/ocicrypt.md
-rw-r--r-- 0/0           14159 2022-05-17 08:12 share/doc/nerdctl/docs/registry.md
-rw-r--r-- 0/0            5368 2022-05-17 08:12 share/doc/nerdctl/docs/rootless.md
-rw-r--r-- 0/0            4918 2022-05-17 08:12 share/doc/nerdctl/docs/stargz.md
drwxr-xr-x 0/0               0 2022-05-17 08:28 share/doc/nerdctl-full/
-rw-r--r-- 0/0            1150 2022-05-17 08:28 share/doc/nerdctl-full/README.md
-rw-r--r-- 0/0            5694 2022-05-17 08:28 share/doc/nerdctl-full/SHA256SUMS

Included components

See share/doc/nerdctl-full/README.md:

# nerdctl (full distribution)
- nerdctl: v0.20.0
- containerd: v1.6.4
- runc: v1.1.2
- CNI plugins: v1.1.1
- BuildKit: v0.10.3
- Stargz Snapshotter: v0.11.4
- imgcrypt: v1.1.4
- RootlessKit: v1.0.1
- slirp4netns: v1.2.0
- bypass4netns: v0.2.2
- fuse-overlayfs: v1.8.2
- containerd-fuse-overlayfs: v1.0.4
- IPFS: v0.12.2
- Tini: v0.19.0
- buildg: v0.0.3

## License
- bin/slirp4netns:    [GNU GENERAL PUBLIC LICENSE, Version 2](https://github.com/rootless-containers/slirp4netns/blob/v1.2.0/COPYING)
- bin/fuse-overlayfs: [GNU GENERAL PUBLIC LICENSE, Version 3](https://github.com/containers/fuse-overlayfs/blob/v1.8.2/COPYING)
- bin/ipfs: [Combination of MIT-only license and dual MIT/Apache-2.0 license](https://github.com/ipfs/go-ipfs/blob/v0.12.2/LICENSE)
- bin/{runc,bypass4netns,bypass4netnsd}: Apache License 2.0, statically linked with libseccomp ([LGPL 2.1](https://github.com/seccomp/libseccomp/blob/main/LICENSE), source code available at https://github.com/seccomp/libseccomp/)
- bin/tini: [MIT License](https://github.com/krallin/tini/blob/v0.19.0/LICENSE)
- Other files: [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)

Quick start

Rootful

$ sudo systemctl enable --now containerd
$ sudo nerdctl run -d --name nginx -p 80:80 nginx:alpine

Rootless

$ containerd-rootless-setuptool.sh install
$ nerdctl run -d --name nginx -p 8080:80 nginx:alpine

Enabling cgroup v2 is highly recommended for rootless mode, see https://rootlesscontaine.rs/getting-started/common/cgroup2/ .


The binaries were built automatically on GitHub Actions.
The build log is available for 90 days: https://github.com/containerd/nerdctl/actions/runs/2337225755

The sha256sum of the SHA256SUMS file itself is 706fab96ae0fd7d859045bbb991a96fcc3658c6a20af596f237a88a70866d7f5 .

Don't miss a new nerdctl release

NewReleases is sending notifications on new releases.