databio / pepatac

A modular, containerized pipeline for ATAC-seq data processing
http://pepatac.databio.org
BSD 2-Clause "Simplified" License
54 stars 15 forks source link

PERMISSION: download the docker image databio/pepatac #298

Open ASNbioinf opened 1 week ago

ASNbioinf commented 1 week ago

I want to run PEPATAC in a container. This is the first time I am using docker.

After installing the Docker module in my Conda environment using the pip install docker command , I tried to extract the Docker databio/pepatac image from DockerHub using the command: docker pull databio/pepatac However, I encountered the following error:

Using default tag: latest 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.24/images/create?fromImage=databio%2Fpepatac&tag=latest": dial unix /var/run/docker.sock: connect: permission denied

I tried also with the command docker build -t databio/pepatac -f pepatac.Dockerfile /my/path/pepatac.Dockerfile but it returned the following 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.24/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=pepatac.Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=databio%2Fpepatac&target=&ulimits=null&version=1": dial unix /var/run/docker.sock: connect: permission denied

Finally, I tried with make docker pepatac.Dockerfile and it returns: make: *** No rule to make target 'docker'. Stop.

Is there an alternative way to download the docker image databio/pepatac?

nsheff commented 1 week ago

I think this isn't a PEPATAC issue, probably you haven't configured docker correctly.

Could it be related to this? https://docs.docker.com/engine/install/linux-postinstall/

If you use sudo before the command does it work? If so, it's because you haven't set up your docker user permissions correctly.