Can't use yum inside Docker container running on CentOS

前端 未结 1 1362
广开言路
广开言路 2020-12-14 06:21

I am unable to run any yum commands inside my Docker container without getting the following error:

ovl: Error while doing RPMdb copy-up:
[Errno 13] Permissi         


        
1条回答
  •  抹茶落季
    2020-12-14 06:37

    Turns out the user was set to jboss in the base image.
    When is switched to user root with the dockerfile command USER root everything worked.

    0 讨论(0)
提交回复
热议问题