在Bitnami的Jenkins中,在Jenkins shell ubuntu中运行Docker命令。

0

【以下的问题经过翻译处理】 Jenkins构建过程中运行Docker,而不是使用Docker插件,我一直在寻找在shell中运行Docker命令的方法。

Bitnami Jenkins使用Tomcat用户,对于SSH登录,它使用Bitnami默认用户名。

我在AWS EC2上从Bitnami购买了Jenkins。我一直遇到用户权限问题,尝试了很多解决方案,搜索了2天。

我使用sudo Visudo更改了sudoers文件中的内容。

尝试使用Jenkins名称创建了新用户来更改Jenkins shell中的默认用户。

从Ubuntu中移除了Tomcat用户名。

我知道这只是一个权限问题,但我卡在shell的用户权限上。

profile picture
EXPERT
asked 5 months ago17 views
1 Answer
0

【以下的回答经过翻译处理】 使用ssh登录到实例

打开终端

切换到jenkin shell默认用户

sudo chmod 777 /var/run/docker.sock

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions