Bash: sudo: command not found when sudo is used in the docker container

terms of settlement:

Check the Linux system version first:

cat /proc/version

1. RedHat mainly includes RedHat, Fedora, CentOS, etc;

The package management tool of RedHat series is Yum and up2date

yum install sudo -y

 

2. Debian system mainly includes Debian, Ubuntu, mint and their derivatives;

The package management tool of Debian series is apt get, which executes

apt-get update

apt-get install sudo

 

Similar Posts: