Skip to content

Commit

Permalink
Updating nerdctl script to new storage location
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Farina <[email protected]>
  • Loading branch information
mattfarina committed Sep 15, 2021
1 parent 285fb1a commit 7505928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/darwin/bin/nerdctl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ scriptdir="${BASH_SOURCE[0]}"
[ -L "${scriptdir}" ] && scriptname="$(readlink "${scriptdir}")"
scriptdir="$(cd "$(dirname "${scriptname}")" && pwd)"

if ! LIMA_HOME="$HOME/Library/State/rancher-desktop/lima" "${scriptdir}/../lima/bin/limactl" ls --json | grep '"name":"rancher-desktop"' | grep -q '"status":"Running"'; then
if ! LIMA_HOME="$HOME/Library/Application Support/rancher-desktop/lima" "${scriptdir}/../lima/bin/limactl" ls --json | grep '"name":"0"' | grep -q '"status":"Running"'; then
echo "Rancher Desktop is not running. Please start Rancher Desktop to use nerdctl";
else
LIMA_HOME="$HOME/Library/State/rancher-desktop/lima" "${scriptdir}/../lima/bin/limactl" shell rancher-desktop nerdctl "$@"
LIMA_HOME="$HOME/Library/Application Support/rancher-desktop/lima" "${scriptdir}/../lima/bin/limactl" shell 0 nerdctl "$@"
fi

0 comments on commit 7505928

Please sign in to comment.