Forum

docker image fails ...
 
Notifications
Clear all

docker image fails to update

2 Posts
2 Users
0 Reactions
2 Views
Posts: 83
Topic starter
(@einar-hjortdal)
Estimable Member
Joined: 2 years ago
[#105]

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


1 Reply
Posts: 212
Admin
(@silvan)
Member
Joined: 12 years ago

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}

Reply
Share: