Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59325

docker plugin unable to launch container as non-root user

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • docker, docker-plugin
    • None

      Hi Team,

      I am trying to launch a docker container as non root user via jenkins. 

      But container fails to launch because of issue with docker ssh agent. I am facing no issue when am launching it as root user. Kindly help me understand what I am missing here.

       

      SYSTEM ERROR LOGS:

      =============================
      Trying to run container for node docker_container-000x8z6l9dv6i from image: trs-docker-local.bhisoj70.apac.nsn-net.net/scm/trs_enb_docker_image_git:v1
      Started container ID 42227c468db31642154dd5dea8024495941a1a0634c974a4079f543ca1bc419b for node docker_container-000x8z6l9dv6i from image: trs-docker-local.bhisoj70.apac.nsn-net.net/scm/trs_enb_docker_image_git:v1

      Failed to launch docker SSH agent :1

       =============================

       

          [JENKINS-59325] docker plugin unable to launch container as non-root user

          pjdarton added a comment -

          The docker template specified MUST match the docker image specified.
          e.g. there's no point telling the docker plugin to SSH into the container as a user "foobar" unless the docker image has that user defined.

          pjdarton added a comment - The docker template specified MUST match the docker image specified. e.g. there's no point telling the docker plugin to SSH into the container as a user "foobar" unless the docker image has that user defined.

            csanchez Carlos Sanchez
            sasa1994 Sangeetha Venugopal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: