Working Solution #simplified
Need to install as root user, to update the linux as well as install application.
docker bash
as root user
docker exec -u 0 -it app22-jenkins-1 bash
- Update linux
apt update -y
- Upgrade
apt upgrade -y
install
vim
apt install vim -y