docker image fails to update

Home Page Forums users docker image fails to update

Viewing 1 reply thread
  • Author
    Posts
    • #29470
      einar.hjortdal
      Participant

      I have the following Dockerfile:

      
      FROM openmamba/openmamba:latest
      
      COPY . /srv
      
      RUN dnf update --refresh --assumeyes && \
        dnf install -y git make && \
        git clone --depth=1 https://github.com/vlang/v /usr/local/v && \
        cd /usr/local/v && \
        make && \
        cd /srv && \
        /usr/local/v -prod .
      
      CMD ["/srv/exec"]
      
      EXPOSE 8080
      

      The step dnf update --refresh --assumeyes fails, I have attached the log.
      Is this expected?
      Edit: I’m not allowed to upload the log, I put it on pastebin https://pastebin.com/UddYes2K

    • #29474
      Silvan
      Keymaster

      Hi,
      this is a known problem with rpm unshare plugin failing in a container.
      I suggest to use the same workaround which I applied in the openmamba-docker-buildvm project, i.e. before running dnf install a file to the pathname /etc/rpm/macros.transaction_unshare with this content:

      
      %__transaction_unshare %{nil}
      
Viewing 1 reply thread
  • You must be logged in to reply to this topic.