当前位置:   article > 正文

must be run from a terminal_su: must be run from a terminal

su: must be run from a terminal

这里在登录docker 容器时,遇到了权限不足。解决办法时切换成root 身份登录

jenkins@3ec4412484f8:/$ su - root
su: must be run from a terminal
jenkins@3ec4412484f8:/$ cd /root
bash: cd: /root: Permission denied
jenkins@3ec4412484f8:/$ su -
su: must be run from a terminal
jenkins@3ec4412484f8:/$ su - root
su: must be run from a terminal
jenkins@3ec4412484f8:/$ sudo su - root
bash: sudo: command not found
jenkins@3ec4412484f8:/$ exit
exit
root@ubuntu:~# docker exec -u root -it myjenkins /bin/bash
root@3ec4412484f8:/# ls
bin   dev               etc   lib    media  opt   root  sbin  sys  usr
boot  docker-java-home  home  lib64  mnt    proc  run   srv   tmp  var
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/111029
推荐阅读
相关标签
  

闽ICP备14008679号