Jenkins:Jenkins如何模拟注销并重新登录?

时间:2019-01-21 22:18:10

标签: docker jenkins

为了解决Jenkins中的docker问题,我需要运行以下命令:

$ sudo usermod -aG docker tomcat   #add the tomcat user to the docker group
$ sudo service docker restart      #restart the docker service

下一步是注销会话(关闭终端窗口)并重新登录(重新打开终端窗口)。在实际的终端窗口中这很容易,但是我们如何指示Jenkins模拟注销并重新登录?

1 个答案:

答案 0 :(得分:0)

您似乎正在尝试配置用户以访问Docker套接字。不需要重新启动引擎,也不必退出外壳:

$ sudo usermod -aG docker tomcat   #add the tomcat user to the docker group
$ newgrp docker      #recognize the new group membership
相关问题