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

Issue running go binary in docker container #87

Closed
vdabbara opened this issue Nov 13, 2020 · 1 comment
Closed

Issue running go binary in docker container #87

vdabbara opened this issue Nov 13, 2020 · 1 comment

Comments

@vdabbara
Copy link

Hello, I have a go program that imports water package to create tap interfaces.
I can compile and run the go application on a ubuntu VM. However, when I make a docker image using dockerfile, I am unable to run the same go application. It complains no such file or directory.
I read that it could be related to cgo dependencies. Could you please help by providing some pointers?
I have tried docker builder with ubuntu, alpine golang:1.14.5. In every case, I am able to compile the go program. The problem is only when I try to run the binary inside the container.

thanks
Venkat

@vdabbara
Copy link
Author

Closing this. Figured the issue. I wasn't running the container in privileged mode.

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