Skip to content

Commit

Permalink
nerdctl 0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
apinske committed Nov 24, 2021
1 parent 7cf3d3c commit e969532
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions macos/root/setup-containerd.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

if [ ! -f /usr/local/bin/nerdctl ]; then
VERSION=0.12.1
VERSION=0.14.0
ARCH=arm64
if [ "$(uname -m)" = "x86_64" ]; then
ARCH=amd64
Expand All @@ -17,33 +17,5 @@ mkdir /mnt/vdb/containerd
ln -s /mnt/vdb/containerd /var/lib/containerd

apk add containerd cni-plugins iptables ip6tables

mkdir -p /etc/cni/net.d/
cat >/etc/cni/net.d/10-mynet.conf <<EOF
{
"cniVersion": "0.2.0",
"name": "mynet",
"type": "bridge",
"bridge": "cni0",
"isGateway": true,
"ipMasq": true,
"ipam": {
"type": "host-local",
"subnet": "10.22.0.0/16",
"routes": [
{ "dst": "0.0.0.0/0" }
]
}
}
EOF

cat >/etc/cni/net.d/99-loopback.conf <<EOF
{
"cniVersion": "0.2.0",
"name": "lo",
"type": "loopback"
}
EOF

echo "::respawn:/usr/bin/containerd 2>&1 | logger -t containerd" >> /etc/inittab
reboot

0 comments on commit e969532

Please sign in to comment.