Kitware / DIVA

DIVA project repository
Other
18 stars 9 forks source link

docker permission #13

Open anex004 opened 6 years ago

anex004 commented 6 years ago

Hi, I am trying the get the docker image using the following command:

docker pull gitlab.kitware.com:4567/diva-baseline/diva-baseline:DIVA_1_A_Evaluation

But I am getting the permission denied error.

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.37/images/create?fromImage=gitlab.kitware.com%3A4567%2Fdiva-baseline%2Fdiva-baseline&tag=DIVA_1_A_Evaluation: dial unix /var/run/docker.sock: connect: permission denied

Any suggestion how to resolve this.

Thanks, Anirban

as6520 commented 6 years ago

Try using sudo with the command

anex004 commented 6 years ago

Hi, thanks. Tried with sudo. Got the following error:

Error response from daemon: Get https://gitlab.kitware.com:4567/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

as6520 commented 6 years ago

Could you verify your docker setup by pulling alpine image? Use docker pull alpine to check if you can pull in pre-built image.

anex004 commented 6 years ago

docker pull alpine works fine.

collinsr commented 6 years ago

Are you in an environment with any sort of network proxies or other restrictions?

Can you clone the git repository hosted on gitlab.kitware.com?

git clone git@gitlab.kitware.com:DIVA-baseline/DIVA-baseline.git?

Ah wait, that's not public...?

anex004 commented 6 years ago

Hi,

This works: git clone https://gitlab.kitware.com/DIVA-baseline/DIVA-baseline

Is it possible to share the docker file, then I can try to build the docker locally.

Thanks.

Cookt2 commented 6 years ago

If I'm not mistaken; the dockerfile is available on the same repo as the prebuilt docker image. here: https://gitlab.kitware.com/DIVA-baseline/DIVA-baseline/blob/master/Dockerfile

anex004 commented 6 years ago

Thanks, I am preparing the docker from the docker file. I get the following error while doing so.


[ 13%] Linking CXX shared library ../../lib/libvital_logger.so
[ 13%] Built target vital_logger
Makefile:149: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/kwiver.dir/build.make:112: recipe for target 'DIVA-ExternalProject-Stamps/kwiver-build' failed
make[2]: *** [DIVA-ExternalProject-Stamps/kwiver-build] Error 2
CMakeFiles/Makefile2:143: recipe for target 'CMakeFiles/kwiver.dir/all' failed
make[1]: *** [CMakeFiles/kwiver.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Seems like its getting stuck while building the "kwiver"

collinsr commented 6 years ago

There isn't enough information here to diagnose the problem. Please include