hybridgroup / gocv

Go package for computer vision using OpenCV 4 and beyond. Includes support for DNN, CUDA, and OpenCV Contrib.
https://gocv.io
Other
6.63k stars 863 forks source link

GoCV DockerHub image problem #1047

Open WuNein opened 1 year ago

WuNein commented 1 year ago

docker image from dockerhub

I see docker image from https://hub.docker.com/r/gocv/opencv/tags. I intended to use image 4.7.0-gpu-cuda-11.2.2 to cross build my onnx image detection problem used in windows.

sudo docker run --gpus all -it  -v /home/xxx/Document/apex:/data gocv/opencv:4.7.0-gpu-cuda-11.2.2
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "go version": executable file not found in $PATH: unknown.
ERRO[0000] error waiting for container: context canceled

But here comes the problem, the golang path in the image is no properly configured.

exec: "go version": executable file not found in $PATH: unknown.

I hope there may be some docs.

deadprogram commented 1 year ago

Thanks for reporting @WuNein

So the way that this image is actually intended to be used is as a base image.

Can you please give a try to https://github.com/hybridgroup/gocv/blob/release/Dockerfile-test.gpu-cuda-11.2.2 which should use that image to run the tests?