1Answer
  • 4
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

docker run failing in Fedora 22

I am using the latest version of Fedora 22 with all updates.

I am trying out docker and getting permission denied failures. I am not seeing the below issue when running as root. Do i really need root access to use docker ?

$ ps -ef | grep docker
root       931     1  0 10:35 ?        00:00:00 /usr/bin/docker -d --selinux-enabled
codingf+  2953  2809  0 10:37 pts/0    00:00:00 grep --color=auto docker

I am running docker daemon

$ docker version
Client version: 1.7.1.fc22
Client API version: 1.19
Package Version (client): docker-1.7.1-8.gitb6416b7.fc22.x86_64
Go version (client): go1.4.2
Git commit (client): b6416b7/1.7.1
OS/Arch (client): linux/amd64
Get http:///var/run/docker.sock/v1.19/version: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?


$ docker info
Get http:///var/run/docker.sock/v1.19/info: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?

$ docker run hello-world
Post http:///var/run/docker.sock/v1.19/containers/create: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?

try sudo docker run. Docker service runs as root, and the unix domain socket requires root permission to talk to.

  • 0
Reply Report
    • Yes, docker containers can only be started as root [out of box]. It's less damaging as the child permission only contained with in the container. You can spawn a docker process as a different user however by passing -u option.

Trending Tags