I am new to docker , I tried to create a custom image where i could simply run pacman -Syu --noconfirm
but the following error occurred:
error: failed to initialize alpm library
(could not find or read directory: /var/lib/pacman/)
The command '/bin/sh -c pacman -Syu --noconfirm' returned a non-zero code: 255
My dockerfile is :
#This is a sample Image
FROM archlinux
RUN pacman -Syu --noconfirm
CMD [“echo”,”Image created”]