How to install a local rpm file when building docker instance?

后端 未结 4 1786
孤独总比滥情好
孤独总比滥情好 2021-02-02 13:56

I have following docker file, I want to specifically install a rpm file that is available on my disk as I am building docker instance. My invocation of rpm install looks like th

4条回答
  •  日久生厌
    2021-02-02 14:18

    my Dockerfile constains these two lines:

    [...]
    ADD SRC/kernel-3.10.0-327.13.1.el7.x86_64.rpm  /tmp/kernel-3.10.0-327.13.1.el7.x86_64.rpm
    ADD SRC/kernel-devel-3.10.0-327.13.1.el7.x86_64.rpm /tmp/kernel-devel-3.10.0-327.13.1.el7.x86_64.rpm
    [...]
    

    Building image process fails with error "lstat SRC/kernel-3.10.0-327.13.1.el7.x86_64.rpm: no such file or directory"

    Both RPM files are inside "SRC" folder from where I'm running "docker build".

    What is the problem??

    Thanks.

提交回复
热议问题