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

RPI Docker may require CGO_ENABLED=0 #7

Open
jdesai61 opened this issue Apr 5, 2020 · 0 comments
Open

RPI Docker may require CGO_ENABLED=0 #7

jdesai61 opened this issue Apr 5, 2020 · 0 comments

Comments

@jdesai61
Copy link

jdesai61 commented Apr 5, 2020

I had to use following command to build the executable image for it to work with docker

cd cmd; env GOARCH=arm GOARM=5 CGO_ENABLED=0 GOOS=linux go build -o gosenseapp

Without it, the docker container gave following error:

docker run -it --rm --net host -v /home/pi/wyze/data/app.yaml:/app.yaml --privileged jd/gosense
standard_init_linux.go:211: exec user process caused "no such file or directory"

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

1 participant