Skip to content

Commit fd1f929

Browse files
aesteve-rhnirs
authored andcommitted
docker: add vdsm user to image
Create unprivileged vdsm user in the container image to enable running tests as non root. Signed-off-by: Albert Esteve <[email protected]>
1 parent 70f12c3 commit fd1f929

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/Dockerfile.centos-8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ RUN dnf copr enable -y ovirt/ovirt-master-snapshot centos-stream-8 \
6060
xfsprogs \
6161
&& dnf clean all
6262

63+
# Create vdsm user with groups kvm,qemu,sanlock
64+
RUN useradd --system -m -u 36 -N -G 36,107,179 vdsm
65+
6366
# Add gdb python support.
6467
RUN debuginfo-install -y python3 \
6568
&& dnf clean all

0 commit comments

Comments
 (0)