docker容器内,执行更新yum命令,被告知没有权限
bash-4.2$ yum update [Errno 13] Permission denied: '/var/lib/rpm/__db.003' You need to be root to perform this command.
解决办法是以root账户进入容器即可
docker exec -it --user root 容器实例名 bash
参考:https://aqzt.com/bubble/11503.html

docker容器内,执行更新yum命令,被告知没有权限
bash-4.2$ yum update [Errno 13] Permission denied: '/var/lib/rpm/__db.003' You need to be root to perform this command.
解决办法是以root账户进入容器即可
docker exec -it --user root 容器实例名 bash
参考:https://aqzt.com/bubble/11503.html