Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-2032

docker instructions fail to install xds docker image

WatchersRequirement Yogi links...
    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Flounder, Guppy
    • Fix Version/s: None
    • Component/s: None
    • Environment:
      openSUSE 15.0

      dl9pf@monster:~/Downloads> docker --version
      Docker version 17.09.1-ce, build f4ffd2511ce9

      Description

      As user 'dl9pf'

      > cat docker_agl_worker-xds-latest.tar.xz | docker load
      Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.32/images/load?quiet=0: dial unix /var/run/docker.sock: connect: permission denied
       

       

      As root:

        # cat docker_agl_worker-xds-latest.tar.xz | docker load
      f715ed19c28b: Loading layer [==================================================>]  105.5MB/105.5MB
      6a5b175b54a6: Loading layer [==================================================>]  1.551MB/1.551MB
      9f296ef42589: Loading layer [==================================================>]  584.3MB/584.3MB
      Loaded image: docker.automotivelinux.org/agl/worker-xds:6.90.0
      

      ok, next:

      monster:/home/dl9pf/Downloads # # Get script
      monster:/home/dl9pf/Downloads # wget -O xds-docker-create-container.sh 'https://gerrit.automotivelinux.org/gerrit/gitweb?p=src/xds/xds-server.git;a=blob_plain;f=scripts/xds-docker-create-container.sh;hb=master'
      --2018-12-10 01:39:45--  https://gerrit.automotivelinux.org/gerrit/gitweb?p=src/xds/xds-server.git;a=blob_plain;f=scripts/xds-docker-create-container.sh;hb=master
      Auflösen des Hostnamens gerrit.automotivelinux.org (gerrit.automotivelinux.org)… 198.145.29.87
      Verbindungsaufbau zu gerrit.automotivelinux.org (gerrit.automotivelinux.org)|198.145.29.87|:443 … verbunden.
      HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
      Länge: 7867 (7,7K) [application/x-sh]
      Wird in »xds-docker-create-container.sh« gespeichert.xds-docker-create-container.sh                       100%[======================================================================================================================>]   7,68K  --.-KB/s    in 0s      2018-12-10 01:39:46 (1,55 GB/s) - »xds-docker-create-container.sh« gespeichert [7867/7867]monster:/home/dl9pf/Downloads # 
      monster:/home/dl9pf/Downloads # # Create new XDS worker container (-id option value should be changed when you get port conflict error)
      monster:/home/dl9pf/Downloads # bash ./xds-docker-create-container.sh -id 1
      Using instance ID #1 (user root)
      25db7260601652314e68c211a388d360ba826ecf4e1f7c053d1d6e3eef528b51
      Copying your identity to container agl-xds-monster-1-root
      wait ssh service ..
      # Host [localhost]:2223 found: line 3
      /root/.ssh/known_hosts updated.
      Original contents retained as /root/.ssh/known_hosts.old
      Warning: Permanently added '[localhost]:2223' (ECDSA) to the list of known hosts.
      You can now login using:
         ssh -p 2223 devel@localhost
      Setup docker user and group id to match yours . .Cannot set docker devel user id to your id: conflict id 0 !
      Error detected, remove unusable docker image agl-xds-monster-1-root
       

       

      As user:

      monster:/home/dl9pf/Downloads # exit
      dl9pf@monster:~/Downloads> bash ./xds-docker-create-container.sh -id 1
      Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.32/images/json?filters=%7B%22reference%22%3A%7B%22docker.automotivelinux.org%2Fagl%2Fworker-xds%22%3Atrue%7D%7D: dial unix /var/run/docker.sock: connect: permission denied
      ERROR: cannot automatically retrieve image tag for docker.automotivelinux.org/agl/worker-xds
      Usage: xds-docker-create-container.sh [-h|--help] [-fr] [-id <instance container ID>] 
                [-nc] [-nuu] [-v|--volume <inpath:outpath>] [image name]
      Image name is optional; 'docker images' is used by default to get image
      Default image:
       docker.automotivelinux.org/agl/worker-xds:4.0Options:
       -fr | --force-restart   Force restart of xds-server service
       -id                     Instance ID used to build container name, a positive integer (0,1,2,...)
       -nuu | --no-uid-update  Don't update user/group id within docker
       -v | --volume           Additional docker volume to bind, syntax is -v /InDockerPath:/HostPath 
       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            SebD Sebastien Douheret
            Reporter:
            jsmoeller Jan-Simon Moeller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: