Giter Club home page Giter Club logo

Comments (3)

yoyoma2 avatar yoyoma2 commented on June 15, 2024 1

I have an old rpi2 on which I recently installed docker so I just tried dockcheck and it failed. The workaround given above worked for me thanks! Amazing what docker can do!

from dockcheck.

mag37 avatar mag37 commented on June 15, 2024

This is due to the binaries from regclient are amd64 or arm64 architecture (rpi3, rpi4, rpiZ2). So if you've got an older Pi (or 32bit OS for other reasons) there's no binaries that supports it.

What you could do is a work-around - where you run regctl in a contianer and wrap it in a shell script. It's not the most elegant solution and it'll be slower than having the proper binary. But it works.

Copied from regclient/docs/install.md:

cat >regctl <<EOF
#!/bin/sh
opts=""
case "\$*" in
  "registry login"*) opts="-t";;
esac
docker container run \$opts -i --rm --net host \\
  -u "\$(id -u):\$(id -g)" -e HOME -v \$HOME:\$HOME \\
  -v /etc/docker/certs.d:/etc/docker/certs.d:ro \\
  ghcr.io/regclient/regctl:latest "\$@"
EOF
chmod 755 regctl

Test it with ./regctl --help and then either add the file to the same path as dockcheck.sh or in your path (eg. ~/.local/bin/regctl).

I might add this to the readme actually, have forgotten to worn on supporting older architecture.

from dockcheck.

mag37 avatar mag37 commented on June 15, 2024

Yeah I'm glad it worked - I tested it on a rpi2 myself just to be sure before suggesting :)

Added this to the readme going up in the next version.

from dockcheck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.