`sudo` is required to docker command on dev-quickstart#exercising-the-services-using-devstack

Bug #1473339 reported by Yusaku Sawai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Yusaku Sawai

Bug Description

This part of the document requires "sudo" when executing.

    ssh minion@192.168.19.86
    REDIS_ID=$(docker ps | grep redis:v1 | grep k8s_master | awk '{print $1}')

time="2015-07-10T08:29:17Z" level="fatal" msg="Get http:///var/run/docker.sock/v1.17/containers/json: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?"

    echo $REDIS_ID
    (blank)

by using sudo it can be solved.

    REDIS_ID=$(docker ps | grep redis:v1 | grep k8s_master | awk '{print $1}')
    echo $REDIS_ID
    60f08d48b26c

also "docker exec" command requires "sudo" too.

    docker exec -i -t $REDIS_ID redis-cli
    FATA[0000] Post http:///var/run/docker.sock/v1.17/containers/60f08d48b26c/exec: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?

Yusaku Sawai (sawai)
Changed in magnum:
assignee: nobody → Yusaku Sawai (sawai)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/200426

Changed in magnum:
status: New → In Progress
Yusaku Sawai (sawai)
summary: - "sudo" is required to docker command on dev-quickstart.html#exercising-
- the-services-using-devstack
+ "sudo" is required to docker command on dev-quickstart#exercising-the-
+ services-using-devstack
summary: - "sudo" is required to docker command on dev-quickstart#exercising-the-
+ `sudo` is required to docker command on dev-quickstart#exercising-the-
services-using-devstack
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/200426
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=cf1c6221695e167751767de99283d94f918f6c0e
Submitter: Jenkins
Branch: master

commit cf1c6221695e167751767de99283d94f918f6c0e
Author: Yusaku Sawai <email address hidden>
Date: Fri Jul 10 17:57:01 2015 +0900

    Add `sudo` before `docker` command on dev docs

    Add `sudo` before `docker ps` and `docker exec` on dev-quickstart.rst.
    At the section "exercising-the-services-using-devstack".

    Change-Id: I6d418d53e83fcdc4eeb6c728535300c39c3e8723
    Closes-Bug: #1473339

Changed in magnum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.