ubuntuにbashでdocker execしたのに vi: command not found

viが入っていないubuntuのイメージだったため、以下でインストールして解決。

apt update && apt install -y vim