:: Re: [DNG] To docker or not to docke…
Pàgina inicial
Delete this message
Reply to this message
Autor: Alessandro Vesely
Data:  
A: dng
Assumpte: Re: [DNG] To docker or not to docker?
On Wed 18/Dec/2024 18:26:53 +0100 Nick wrote:
> On 18-12-2024 10:48, Alessandro Vesely via Dng wrote:
>> [...]
>> I installed docker and tried to run it.  (I use -----begin---- and -----
>> end----- markers for clarity.)
>>
>> -----begin-----
>> ale@pcale:~$ docker run hello-world
>> docker: 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/containers/create": dial unix /var/run/docker.sock: connect: permission
>> denied.
>> -----end-----
>> [...]
>
> I use docker on a large scale but only with images i have build myself. The
> error you show is a Python one.//Python's advise is to the use the distro
> specific package in your case python3-olefile which you install with apt.



Hm.. olefile and oletools are different things, albeit by the same author. For the time being I use pip3's --target option to install in /usr/local.

The failed attempt was to demonstrate that pip3 is aware of externally-managed-environment while docker is not.


> Another available feature is that you can run docker rootless which is very
> useful for most usecases. Only a fraction of the docker containers need root to
> run.



I have the docker group, nevertheless I get docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))

I would rather run the package without docker...


Best
Ale
--