apt-add-repository: command not found error in Dockerfile

apt-add-repository is just not in the base Ubuntu image. You’ll first need to install it. try apt-get install software-properties-common

By the way, you don’t need to use sudo in the Dockerfile because the commands run as root by default unless you change to another user with the USER command.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)