Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to install on raspberry pi? #65

Closed
AnderssonPeter opened this issue Jul 13, 2017 · 15 comments
Closed

how to install on raspberry pi? #65

AnderssonPeter opened this issue Jul 13, 2017 · 15 comments
Assignees

Comments

@AnderssonPeter
Copy link

I tried running the following sudo docker run -it --name samba -p 139:139 -p 445:445 -p 137:137/udp -p 138:138/udp -v /data:/mount -d dperson/samba -n, but i get a format error, guessing its trying to run x86 or x64 code..

any chance you could add a tag for arm?

@dperson dperson self-assigned this Jul 13, 2017
@dperson
Copy link
Owner

dperson commented Jul 13, 2017

It already is. But I've never run docker on my RasPi, so it's up to you to figure out how to run the right platform version

dperson@tundro$ head -1 docker/samba/Dockerfile*
==> docker/samba/Dockerfile <==
FROM debian:stretch

==> docker/samba/Dockerfile.aarch64 <==
FROM aarch64/debian:stretch

==> docker/samba/Dockerfile.armhf <==
FROM armhf/debian:stretch

@dperson dperson closed this as completed Jul 13, 2017
@AnderssonPeter
Copy link
Author

i meant that if you add a tag like arm at dockerhub people could just run sudo docker run -it --name samba -p 139:139 -p 445:445 -p 137:137/udp -p 138:138/udp -v /data:/mount -d dperson/samba:arm -n As you already have the right dockerfile it should be easy?

@AnderssonPeter
Copy link
Author

Or I guess two tags aarch64 and armhf would be the best, but I'm 99% sure armhf would work on a pi.

@JessieSuffrage
Copy link

+1 on @AnderssonPeter's suggestion. Tags appear to be how official images for Node & Debian are managed. Allows for super easy selection from dockerhub, especially when using a UI like Portainer.

@dperson
Copy link
Owner

dperson commented Oct 16, 2017

AFAIK (As Far As I Know) there's no way to add a tag via the Dockerfile and / or set it up on docker hub to tag them. I am just a guy that has a normal day job too, there's not even really an API to add a tag to an image on docker hub that I could find.

@koheiio
Copy link

koheiio commented Oct 16, 2017

https://docs.docker.com/docker-hub/builds/#create-an-automated-build seems to suggest tags are branch based?

@koheiio
Copy link

koheiio commented Oct 16, 2017

I appreciate the work you do @dperson - I use this image regularly. Just trying to help!

@dperson
Copy link
Owner

dperson commented Oct 16, 2017

Ah, cool thanks. I'll try to get the new branches created and added to builds in the hub soon. I'd missed entirely that it would create tags for them.

@dperson dperson reopened this Oct 16, 2017
@dperson
Copy link
Owner

dperson commented Oct 16, 2017

Well they're added, let me know if it solves the problem for you.

@dperson dperson closed this as completed Oct 16, 2017
@dperson
Copy link
Owner

dperson commented Oct 16, 2017

Hmm, the builds are failing, it seems (based on the errors) that it's trying to do the build for the ARM systems on x86 systems... not going to work.

@koheiio
Copy link

koheiio commented Oct 17, 2017

Thanks anyway - I forked your repository to play around with, maybe I'll come up with something

@dperson
Copy link
Owner

dperson commented Oct 17, 2017

I figured out a way to get docker hub to build them. There are now rpi and armv7hf tagged builds. Please let me know if they work for you. If they do, I'll add them to the README.md documentation.

@JessieSuffrage
Copy link

Great work mate! I got Samba installed and working through Docker Hub via the armv7hf tag on a Raspberry Pi 3 running Raspbian Stretch.

I didn't try the rpi image.

Cheers :)

@dperson
Copy link
Owner

dperson commented Oct 18, 2017

Glad to hear it. I'll add it to the docs soon.

@dperson
Copy link
Owner

dperson commented Oct 20, 2017

Made some changes, the tag names have simplified now there's just armhf. Hopefully no more changes in the naming. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants