MyGit

v2.0.0-beta.2

containerd/nerdctl

版本发布时间: 2024-03-16 18:11:34

containerd/nerdctl最新发布版本:v2.0.0-rc.0(2024-06-26 11:12:57)

Changes

nerdctl v2 enables "detach-netns" for Rootless mode by default (#2723).

This will bring:

Depends on RootlessKit v2 and BuildKit v0.13 (included in nerdctl-full-*.tar.gz).

[!NOTE] After upgrading nerdctl (rootless mode) from v1.x to v2.x, it is highly recommended to re-install the systemd units and the configurations:

containerd-rootless-setuptool.sh uninstall
rm -rf ~/.config/{nerdctl,buildkit}
containerd-rootless-setuptool.sh install
CONTAINERD_NAMESPACE=default containerd-rootless-setuptool.sh install-buildkit-containerd

Other major changes:

Full changes: https://github.com/containerd/nerdctl/milestone/37?closed=1 Thanks to @Shubhranshu153 @alegrey91 @dmcgowan @fahedouch @jmpargana @manugupt1 @minuk-dev @monirul @roman-kiselenko @sazzy4o @testwill @yankay @zwpaper

Compatible containerd versions

This release of nerdctl is expected to be used with containerd v1.6 or v1.7.

About the binaries

Minimal

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

tar Cxzvvf /usr/local/bin nerdctl-2.0.0-beta.2-linux-amd64.tar.gz

-rwxr-xr-x root/root  25235456 2024-03-16 09:52 nerdctl
-rwxr-xr-x root/root     22764 2024-03-16 09:52 containerd-rootless-setuptool.sh
-rwxr-xr-x root/root      8640 2024-03-16 09:52 containerd-rootless.sh

Full

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

tar Cxzvvf /usr/local nerdctl-full-2.0.0-beta.2-linux-amd64.tar.gz

drwxr-xr-x 0/0               0 2024-03-16 09:59 bin/
-rwxr-xr-x 0/0        30010775 2015-10-21 00:00 bin/buildctl
-rwxr-xr-x 0/0        23724032 2022-09-05 09:52 bin/buildg
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-LICENSE -> ../libexec/cni/LICENSE
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-README.md -> ../libexec/cni/README.md
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-bandwidth -> ../libexec/cni/bandwidth
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-bridge -> ../libexec/cni/bridge
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-dhcp -> ../libexec/cni/dhcp
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-dummy -> ../libexec/cni/dummy
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-firewall -> ../libexec/cni/firewall
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-host-device -> ../libexec/cni/host-device
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-host-local -> ../libexec/cni/host-local
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-ipvlan -> ../libexec/cni/ipvlan
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-loopback -> ../libexec/cni/loopback
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-macvlan -> ../libexec/cni/macvlan
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-portmap -> ../libexec/cni/portmap
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-ptp -> ../libexec/cni/ptp
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-sbr -> ../libexec/cni/sbr
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-static -> ../libexec/cni/static
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-tap -> ../libexec/cni/tap
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-tuning -> ../libexec/cni/tuning
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-vlan -> ../libexec/cni/vlan
lrwxrwxrwx 0/0               0 2024-03-16 09:59 bin/buildkit-cni-vrf -> ../libexec/cni/vrf
-rwxr-xr-x 0/0        57547522 2015-10-21 00:00 bin/buildkitd
-rwxr-xr-x 0/0         7277848 2024-03-16 09:57 bin/bypass4netns
-rwxr-xr-x 0/0         5308416 2024-03-16 09:57 bin/bypass4netnsd
-rwxr-xr-x 0/0        38885048 2024-03-16 09:58 bin/containerd
-rwxr-xr-x 0/0         9474048 2023-11-02 17:34 bin/containerd-fuse-overlayfs-grpc
-rwxr-xr-x 0/0           22764 2024-03-16 09:57 bin/containerd-rootless-setuptool.sh
-rwxr-xr-x 0/0            8640 2024-03-16 09:57 bin/containerd-rootless.sh
-rwxr-xr-x 0/0        12066816 2024-03-16 09:58 bin/containerd-shim-runc-v2
-rwxr-xr-x 0/0        45903872 2023-10-31 08:57 bin/containerd-stargz-grpc
-rwxr-xr-x 0/0        20634745 2024-03-16 09:59 bin/ctd-decoder
-rwxr-xr-x 0/0        18771968 2024-03-16 09:58 bin/ctr
-rwxr-xr-x 0/0        29669409 2024-03-16 09:59 bin/ctr-enc
-rwxr-xr-x 0/0        19931136 2023-10-31 08:58 bin/ctr-remote
-rwxr-xr-x 0/0         1785448 2024-03-16 09:59 bin/fuse-overlayfs
-rwxr-xr-x 0/0        65588315 2024-03-16 09:58 bin/ipfs
-rwxr-xr-x 0/0        25206784 2024-03-16 09:57 bin/nerdctl
-rwxr-xr-x 0/0        10666181 2024-03-05 22:20 bin/rootlessctl
-rwxr-xr-x 0/0        12358373 2024-03-05 22:20 bin/rootlesskit
-rwxr-xr-x 0/0        15074064 2024-03-16 09:57 bin/runc
-rwxr-xr-x 0/0         2346328 2024-03-16 09:59 bin/slirp4netns
-rwxr-xr-x 0/0          870496 2024-03-16 09:59 bin/tini
drwxr-xr-x 0/0               0 2024-03-16 09:58 lib/
drwxr-xr-x 0/0               0 2024-03-16 09:58 lib/systemd/
drwxr-xr-x 0/0               0 2024-03-16 09:59 lib/systemd/system/
-rw-r--r-- 0/0            1475 2024-03-16 09:59 lib/systemd/system/buildkit.service
-rw-r--r-- 0/0            1414 2024-03-16 09:56 lib/systemd/system/containerd.service
-rw-r--r-- 0/0             312 2024-03-16 09:59 lib/systemd/system/stargz-snapshotter.service
drwxr-xr-x 0/0               0 2024-03-16 09:59 libexec/
drwxr-xr-x 0/0               0 2024-03-16 09:59 libexec/cni/
-rw-r--r-- 0/0           11357 2024-03-12 10:56 libexec/cni/LICENSE
-rw-r--r-- 0/0            2343 2024-03-12 10:56 libexec/cni/README.md
-rwxr-xr-x 0/0         4119661 2024-03-12 10:56 libexec/cni/bandwidth
-rwxr-xr-x 0/0         4662227 2024-03-12 10:56 libexec/cni/bridge
-rwxr-xr-x 0/0        11065251 2024-03-12 10:56 libexec/cni/dhcp
-rwxr-xr-x 0/0         4306546 2024-03-12 10:56 libexec/cni/dummy
-rwxr-xr-x 0/0         4751593 2024-03-12 10:56 libexec/cni/firewall
-rwxr-xr-x 0/0         4198427 2024-03-12 10:56 libexec/cni/host-device
-rwxr-xr-x 0/0         3560496 2024-03-12 10:56 libexec/cni/host-local
-rwxr-xr-x 0/0         4324636 2024-03-12 10:56 libexec/cni/ipvlan
-rwxr-xr-x 0/0         3651038 2024-03-12 10:56 libexec/cni/loopback
-rwxr-xr-x 0/0         4355073 2024-03-12 10:56 libexec/cni/macvlan
-rwxr-xr-x 0/0         4095898 2024-03-12 10:56 libexec/cni/portmap
-rwxr-xr-x 0/0         4476535 2024-03-12 10:56 libexec/cni/ptp
-rwxr-xr-x 0/0         3861176 2024-03-12 10:56 libexec/cni/sbr
-rwxr-xr-x 0/0         3120090 2024-03-12 10:56 libexec/cni/static
-rwxr-xr-x 0/0         4381887 2024-03-12 10:56 libexec/cni/tap
-rwxr-xr-x 0/0         3743844 2024-03-12 10:56 libexec/cni/tuning
-rwxr-xr-x 0/0         4319235 2024-03-12 10:56 libexec/cni/vlan
-rwxr-xr-x 0/0         4008392 2024-03-12 10:56 libexec/cni/vrf
drwxr-xr-x 0/0               0 2024-03-16 09:57 share/
drwxr-xr-x 0/0               0 2024-03-16 09:57 share/doc/
drwxr-xr-x 0/0               0 2024-03-16 09:57 share/doc/nerdctl/
-rw-r--r-- 0/0           12390 2024-03-16 09:52 share/doc/nerdctl/README.md
drwxr-xr-x 0/0               0 2024-03-16 09:52 share/doc/nerdctl/docs/
-rw-r--r-- 0/0            3953 2024-03-16 09:52 share/doc/nerdctl/docs/build.md
-rw-r--r-- 0/0            2570 2024-03-16 09:52 share/doc/nerdctl/docs/builder-debug.md
-rw-r--r-- 0/0            3749 2024-03-16 09:52 share/doc/nerdctl/docs/cni.md
-rw-r--r-- 0/0           75756 2024-03-16 09:52 share/doc/nerdctl/docs/command-reference.md
-rw-r--r-- 0/0            1814 2024-03-16 09:52 share/doc/nerdctl/docs/compose.md
-rw-r--r-- 0/0            5329 2024-03-16 09:52 share/doc/nerdctl/docs/config.md
-rw-r--r-- 0/0            9128 2024-03-16 09:52 share/doc/nerdctl/docs/cosign.md
-rw-r--r-- 0/0            5660 2024-03-16 09:52 share/doc/nerdctl/docs/cvmfs.md
-rw-r--r-- 0/0            2435 2024-03-16 09:52 share/doc/nerdctl/docs/dir.md
-rw-r--r-- 0/0             906 2024-03-16 09:52 share/doc/nerdctl/docs/experimental.md
-rw-r--r-- 0/0           14217 2024-03-16 09:52 share/doc/nerdctl/docs/faq.md
-rw-r--r-- 0/0             884 2024-03-16 09:52 share/doc/nerdctl/docs/freebsd.md
-rw-r--r-- 0/0            3273 2024-03-16 09:52 share/doc/nerdctl/docs/gpu.md
drwxr-xr-x 0/0               0 2024-03-16 09:52 share/doc/nerdctl/docs/images/
-rw-r--r-- 0/0          684421 2024-03-16 09:52 share/doc/nerdctl/docs/images/rootlessKit-network-design.png
-rw-r--r-- 0/0           14462 2024-03-16 09:52 share/doc/nerdctl/docs/ipfs.md
-rw-r--r-- 0/0            1748 2024-03-16 09:52 share/doc/nerdctl/docs/multi-platform.md
-rw-r--r-- 0/0            2960 2024-03-16 09:52 share/doc/nerdctl/docs/notation.md
-rw-r--r-- 0/0            2596 2024-03-16 09:52 share/doc/nerdctl/docs/nydus.md
-rw-r--r-- 0/0            3277 2024-03-16 09:52 share/doc/nerdctl/docs/ocicrypt.md
-rw-r--r-- 0/0            1876 2024-03-16 09:52 share/doc/nerdctl/docs/overlaybd.md
-rw-r--r-- 0/0           15657 2024-03-16 09:52 share/doc/nerdctl/docs/registry.md
-rw-r--r-- 0/0            8630 2024-03-16 09:52 share/doc/nerdctl/docs/rootless.md
-rw-r--r-- 0/0            2015 2024-03-16 09:52 share/doc/nerdctl/docs/soci.md
-rw-r--r-- 0/0           10312 2024-03-16 09:52 share/doc/nerdctl/docs/stargz.md
drwxr-xr-x 0/0               0 2024-03-16 09:59 share/doc/nerdctl-full/
-rw-r--r-- 0/0            1161 2024-03-16 09:59 share/doc/nerdctl-full/README.md
-rw-r--r-- 0/0            8552 2024-03-16 09:59 share/doc/nerdctl-full/SHA256SUMS
Included components

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

# nerdctl (full distribution)
- nerdctl: v2.0.0-beta.2
- containerd: v1.7.14
- runc: v1.1.12
- CNI plugins: v1.4.1
- BuildKit: v0.13.0
- Stargz Snapshotter: v0.15.1
- imgcrypt: v1.1.10
- RootlessKit: v2.0.2
- slirp4netns: v1.2.3
- bypass4netns: v0.4.0
- fuse-overlayfs: v1.13
- containerd-fuse-overlayfs: v1.0.8
- Kubo (IPFS): v0.27.0
- Tini: v0.19.0
- buildg: v0.4.1

## License
- bin/slirp4netns:    [GNU GENERAL PUBLIC LICENSE, Version 2](https://github.com/rootless-containers/slirp4netns/blob/v1.2.3/COPYING)
- bin/fuse-overlayfs: [GNU GENERAL PUBLIC LICENSE, Version 2](https://github.com/containers/fuse-overlayfs/blob/v1.13/COPYING)
- bin/ipfs: [Combination of MIT-only license and dual MIT/Apache-2.0 license](https://github.com/ipfs/kubo/blob/v0.27.0/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/8306927775

The sha256sum of the SHA256SUMS file itself is ad66933738a3528584ffbece328d27f9ea9714d1c169ec3b4593cdda9e621651 .


Release manager: Akihiro Suda (@AkihiroSuda)

相关地址:原始地址 下载(tar) 下载(zip)

1、 nerdctl-2.0.0-beta.2-freebsd-amd64.tar.gz 8.34MB

2、 nerdctl-2.0.0-beta.2-go-mod-vendor.tar.gz 6.85MB

3、 nerdctl-2.0.0-beta.2-linux-amd64.tar.gz 9.08MB

4、 nerdctl-2.0.0-beta.2-linux-arm-v7.tar.gz 8.57MB

5、 nerdctl-2.0.0-beta.2-linux-arm64.tar.gz 8.31MB

6、 nerdctl-2.0.0-beta.2-linux-ppc64le.tar.gz 8.21MB

7、 nerdctl-2.0.0-beta.2-linux-riscv64.tar.gz 8.59MB

8、 nerdctl-2.0.0-beta.2-linux-s390x.tar.gz 8.97MB

9、 nerdctl-2.0.0-beta.2-windows-amd64.tar.gz 8.62MB

10、 nerdctl-full-2.0.0-beta.2-linux-amd64.tar.gz 229.96MB

11、 nerdctl-full-2.0.0-beta.2-linux-arm64.tar.gz 213.08MB

12、 SHA256SUMS 1.16KB

13、 SHA256SUMS.asc 659B

查看:2024-03-16发行的版本