Docker Community Forums

Share and learn in the Docker community.

Centos/mysql-57-centos7:latest - CentOS Root access?

While using CI/CD feature on Gitlab with centos/mysql-57-centos7:latest, when I install

yum install -y

I get error

ovl: Error while doing RPMdb copy-up:
[Errno 13] Permission denied: '/var/lib/rpm/Name'
You need to be root to perform this command.

How do I get root access on this image?