https://rancher.com/ logo
Title
f

future-night-11133

01/11/2023, 4:58 AM
Hey guys, is there an estimate for a release with nerdctl v1.1.0?
f

fast-garage-66093

01/11/2023, 5:03 AM
Probably not until late February or early March. I have a script for updating for testing purposes:
$ catw nerdctl-1.1
#!/bin/bash

set -eux

VERSION=${VERSION:-1.1.0}

rdctl shell sudo -i wget <https://github.com/containerd/nerdctl/releases/download/v${VERSION}/nerdctl-${VERSION}-linux-amd64.tar.gz>
rdctl shell sudo -i tar xvfz nerdctl-${VERSION}-linux-amd64.tar.gz -C /usr/local/libexec/nerdctl nerdctl
rdctl shell sudo -i rm nerdctl-${VERSION}-linux-amd64.tar.gz
You can also use it to downgrade again with
VERSION=1.0.0 ./nerdctl-1.1
🙂
Note: the script is specific to Rancher Desktop 1.7.x and will not work correctly for older releases
f

future-night-11133

01/11/2023, 5:07 AM
Awesome, that’s perfect. Thank you so much @fast-garage-66093
f

fast-garage-66093

01/11/2023, 5:13 AM
Just for the record: on Windows this will not update the
nerdctl-stub
program that translates filename arguments from Windows paths to Linux paths. But that is only relevant to any new options taking filename arguments. And I think you are on macOS anyways...
f

future-night-11133

01/11/2023, 5:13 AM
Yeah, that would be my next question. I am on mac, this script you sent works on mac?
f

fast-garage-66093

01/11/2023, 5:15 AM
Yeah, should work on all platforms, but on Windows you might need to adapt it, as I don't think
rdctl
works properly from within WSL
f

future-night-11133

01/11/2023, 5:15 AM
gotcha
But what about this location? /usr/local/libexec/nerdctl nerdctl
f

fast-garage-66093

01/11/2023, 5:16 AM
$ nerdctl --version
nerdctl version 1.0.0

$ nerdctl-1.1
+ VERSION=1.1.0
+ rdctl shell sudo -i wget <https://github.com/containerd/nerdctl/releases/download/v1.1.0/nerdctl-1.1.0-linux-amd64.tar.gz>
Connecting to <http://github.com|github.com> (140.82.113.3:443)
Connecting to <http://objects.githubusercontent.com|objects.githubusercontent.com> (185.199.110.133:443)
saving to 'nerdctl-1.1.0-linux-amd64.tar.gz'
nerdctl-1.1.0-linux- 100% |****************************************************************************| 10.3M  0:00:00 ETA
'nerdctl-1.1.0-linux-amd64.tar.gz' saved
+ rdctl shell sudo -i tar xvfz nerdctl-1.1.0-linux-amd64.tar.gz -C /usr/local/libexec/nerdctl nerdctl
nerdctl
+ rdctl shell sudo -i rm nerdctl-1.1.0-linux-amd64.tar.gz

$ nerdctl --version
nerdctl version 1.1.0
Note that all the commands
rdctl shell ...
run inside the VM and not on the host
f

future-night-11133

01/11/2023, 5:17 AM
ohh, that makes sense xD
❯ nerdctl --version
nerdctl version 1.1.0
👍 1
Worked, thanks again!!