简体   繁体   中英

On Bitnami's Jenkins Run Docker Commands in Jenkins shell ubuntu

I was trying to run docker during jenkins build rather then using docker plugin i was searching to run docker's command in shell.

bitnami jenkins use tomcat user and for ssh login it use bitnami default username.

I have purchased jenkins from bitnami on aws ec2. I was facing User permission issue and tried lots of solution & searched for 2 days.

  • I did changes in sudoers file using sudo Visudo
  • made new user with jenkins name try to change default user in jenkin shell
  • Removed Tomcat user name form ubuntu

I was knowing it is only permission issue but i was stuck on user permission of shell

  1. Just simple Do ssh login to instance
  2. open terminal
  3. change to jenkin shell default user

    sudo chmod 777 /var/run/docker.sock

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM