I am trying to run a Python CGI script, inside which I need to run a docker image. I am using Docker version 1.6.2. user "www-data", which is added to the docker group.
www-data : www-data sudo docker
On a machine with www data, I can execute docker commands
www-data@mytest :~/html/new$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
I get the following error when launching a docker image from a Python CGI script:
fatal msg="Get http:///var/run/docker.sock/v1.18/images/json: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?"
Is there anything I don't see here?
user5154816
source share