How to install Sudo inside a docker container in Linux?
After SSH to the docker container in Ubuntu Linux, I run some commands to do something. For example as below:
sudo add-apt-repository main
But I got an error : bash: sudo: command not found.
I tried to install sudo by command below :
apt-get install sudo
But I got error: Unable to locate package sudo.
Please suggest to me How to install Sudo inside a docker container in Linux?
I run the command below. It's worked for me.
apt-get update apt-get -y install sudoManish Kumar Dec 10 2020