Not able to install linxu packages in docker

I get below error when i try to install octave in docker. How to resolve this and install octave? Pls let me know.


Step 8/18 : RUN apt install octave
—> Running in ee2ef8b179c2

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
The command ‘/bin/sh -c apt install octave’ returned a non-zero code: 100

I tried to install octave after creating containter
sudo apt-get install octage
bash: sudo: command not found