LoginSignup
20
9

More than 3 years have passed since last update.

Docker上に構築したLINUX(Debian)で「bash: sudo: command not found」エラーが出る

Last updated at Posted at 2020-10-05

起こった事

Docker上に構築したLINUXコンテナにSSHで入り、sudoコマンドを打つと通らなかった。

$ sudo hogehoge
bash: sudo: command not found

行なった事

ディストリビューションを調べる

$ cat /etc/debian_version
10.5

sudoコマンドインストール

$ apt update  
$ apt install sudo  
20
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
9