bash: sudo: command not found
臭大佬
2021-09-27 15:19:58
2968
简介
在docker容器内的ubuntu下,报bash: sudo: command not found
问题
在docker
容器内的ubuntu
下,报bash: sudo: command not found
,
容器内避免使用角色root
,建立新用户执行命令 使用sudo
。
解决方法
更新软件列表
apt-get update
安装sudo
命令
apt-get install sudo
用 sudo
试试
sudo
{{ comment.content }}
@ {{ child.answered_user_name }}:{{ child.content
}}