Giter VIP home page Giter VIP logo

Comments (5)

snowskeleton avatar snowskeleton commented on June 9, 2024

Nothing about ynam precludes it from working on arm, although I've never tried it. If you want a quick fix, downloading the source and running docker build snowskeleton/ynam <ynam_source_directory> should work. Long term, I’ll look into incorporating an arm version into my release process.

I'm not specifically familiar with that container service. My setup is an Ubuntu server running on x86 hardware. I have a cron job scheduled every 10 minutes. I just rewrote the Docker part of the README the other day, so that should have up to date info on what command to run. If part of my instructions don't make sense, please ask. I want them to be as thorough as possible.

from ynam.

AndrewMcLeod03 avatar AndrewMcLeod03 commented on June 9, 2024

So after running the docker build command "sudo docker build snowskeleton/ynam /home/ynam", it gave:

"docker build" requires exactly 1 argument.
See 'docker build --help'.

I then ran sudo docker build snowskeleton/ynam /home/ynam, and it gave:

Sending build context to Docker daemon 325.1kB
Step 1/8 : FROM selenium/standalone-chrome as b1
---> 2324e0524f83
Step 2/8 : ENV PATH=$HOME/.local/bin:$PATH
---> Using cache
---> 340c29c9232c
Step 3/8 : RUN sudo su
---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
---> Running in 2a570a97feea
exec /bin/sh: exec format error
The command '/bin/sh -c sudo su' returned a non-zero code: 1

What dumb mistake am I making?

I get the following error when trying to run the image installed through instructions in the ReadMe:
exec /usr/bin/sudo: exec format error

After doing a quick search, some people on a form said this could be do to having differing architectures. That's why I was pursuing trying to get an arm version. Do you have any thoughts?

Thanks!

from ynam.

snowskeleton avatar snowskeleton commented on June 9, 2024

To answer your first question, I mistyped the command I gave you. The tag has to be prepended with a -t flag like so

docker build -t snowskeleton/ynam <ynam_source_directory>

But! That shouldn't be necessary, as I got the docker hub version to support both arm64 and amd64. You should be able to pull a fresh image from snowskeleton/ynam:latest and it'll work. Lemme know if it doesn't.

from ynam.

AndrewMcLeod03 avatar AndrewMcLeod03 commented on June 9, 2024

Ah gotcha! I kind of assumed maybe something wasn't quite right.

Thanks so much for doing that!! I got the new version and after inspecting the image I see arm 64!

Sadly I'm still having the same issue. I keep getting exec /usr/bin/sudo: exec format error. Do you have any other ideas.

I've done fixes like adding docker to sudo and several other random things, but still getting the same error. Planning on playing around with the Dockerfile a little to see if I can fix the issue. Here's a thread I've been looking at https://stackoverflow.com/questions/25845538/how-to-use-sudo-inside-a-docker-container. I'm thinking my system doesn't like something about the sudo su. Before now I've really had no experience with docker or linux for that matter. It's been good! Definitely will need it at some point in software development.

Thanks! I owe you a coffee or something!

from ynam.

snowskeleton avatar snowskeleton commented on June 9, 2024

My instinct says the sudo error is a red herring. Usually this type of low level, opaque system failure is because docker isn't installed correctly, for some definition of "correctly." The first thing I check in these cases is that the docker group exists and that your user is a part of it (and that you've restarted your shell since making/joining said group). You can also try running some other images to see if they work. docker run hello-world is an easy test, so is docker run ubuntu. They might give you different, more insightful errors.

from ynam.

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.