Re: phpdoc and docker

Tommy <[email protected]>
Newsgroups comp.lang.php
Organization Aioe.org NNTP Server
Message-ID <[email protected]>
Il 12/07/22 17:05, J.O. Aho ha scritto:
> On 12/07/2022 12.52, Tommy wrote:
>> $ docker run --rm -v ${PWD}:/data phpdoc/phpdoc:3
>> docker: Cannot connect to the Docker daemon at 
>> unix:///$HOME/.docker/desktop/docker.sock. Is the docker daemon running?.
>> See 'docker run --help'.
>>
>> Why?
> 
> Docker requires the docker service to be up and running before you can 
> use the command line to execute things. This for the docker service will 
> do things for you that you don't have access to do as an unprivileged 
> user, as long as you are in the docker group.
> 
> This has little to do with PHP, if you need more assistance you should 
> look at a Linux newsgroup to get help to start your docker service.
> 

I restarted the system, but it still doesn't work


$ cat phpdoc.dist.xml
<?xml version="1.0" encoding="UTF-8" ?>
<phpdocumentor
         configVersion="3"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="https://www.phpdoc.org"
 
xsi:noNamespaceSchemaLocation="https://docs.phpdoc.org/latest/phpdoc.xsd"
 >
     <paths>
         <output>build/api</output>
         <cache>build/cache</cache>
     </paths>
     <version number="3.0.0">
         <api>
             <source dsn=".">
                 <path>src</path>
             </source>
         </api>
     </version>
</phpdocumentor>

$ docker run --rm -v ${PWD}:/data phpdoc/phpdoc:3 | head -n6
Description:
   Parses and transforms the given files to a specified location

Usage:
   project:run [options]
   run
write /dev/stdout: broken pipe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.