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

Docker cannot be used right after agent provisioning without sudo

    Details

    • Sprint:
      Evergreen - Milestone 2
    • Similar Issues:

      Description

      Problem statement

      Though the user is configured to have the necessary permissions to not require sudo to use docker, it does not work.

      The workaround is to manually disconnect, then reconnect the agent. This is because the script is run in the connecting session, then no logout/login is performed.

      Expected behavior

      docker should be usable right away after agent provisioning.

      Though we could require users to use sudo, this is likely a major hurdle since users (like evergreen codebase) itself will probably have scripts that run docker without sudo (and as a simple alias won't be enough, then we'd move more and more away from keeping Evergreen simple to use)

        Attachments

          Activity

          batmat Baptiste Mathus created issue -
          batmat Baptiste Mathus made changes -
          Field Original Value New Value
          Epic Link JENKINS-49853 [ 188837 ]
          batmat Baptiste Mathus made changes -
          Assignee R. Tyler Croy [ rtyler ] Baptiste Mathus [ batmat ]
          Hide
          imod Dominik Bartholdi added a comment -

          I worked around this by setting up my own AMI where docker is already installed

          Show
          imod Dominik Bartholdi added a comment - I worked around this by setting up my own AMI where docker is already installed
          batmat Baptiste Mathus made changes -
          Rank Ranked higher
          batmat Baptiste Mathus made changes -
          Labels docker evergreen docker evergreen ux
          batmat Baptiste Mathus made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          got_wiid Got Wiid made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          batmat Baptiste Mathus made changes -
          Assignee Baptiste Mathus [ batmat ]
          batmat Baptiste Mathus made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          chammer Carsten Hammer made changes -
          Rank Ranked higher

            People

            • Assignee:
              Unassigned
              Reporter:
              batmat Baptiste Mathus
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: