The following lsblk command returns "null" for several fields when called from within my archlinux container. On my natively running system the lsblk command returns values for all fields as expected.
lsblk --json -b -o+partn,partuuid,parttype,uuid /dev/sdd
Here's my docker run command.
docker run \
--env PS1="mycontanier(\#)[\d \T:\w]\\$ " \
--interactive \
--privileged \
--device=/dev/sdd \
--cap-add=SYS_ADMIN \
--rm \
--tty \
"mycontainer:latest"
And here's my Dockerfile
FROM docker.io/archlinux:latest
ENV NAME=mycontainer VERSION=rolling
RUN pacman -Sy --noconfirm
git
dosfstools
arch-install-scripts
reflector
python-archinstall
rsync
pkgconf
RUN pacman -Scc --noconfirm
Configure reflector
RUN reflector
--latest 5
--protocol http,https
--save "/etc/pacman.d/mirrorlist"
--sort rate
CMD /usr/bin/bash
What should I modify about my container to make these lsblk report the correct values for my drive?