Add yum/dnf to centos8 image
This commit is contained in:
parent
5f0749155a
commit
cc470d2105
@ -19,7 +19,7 @@ RUN cp /etc/yum.repos.d/* $TMPDIR/etc/yum.repos.d/
|
|||||||
|
|
||||||
RUN yum --installroot=$TMPDIR \
|
RUN yum --installroot=$TMPDIR \
|
||||||
--releasever=8 \
|
--releasever=8 \
|
||||||
-y install openssh-server openssh-clients
|
-y install openssh-server openssh-clients yum dnf
|
||||||
|
|
||||||
RUN chroot $TMPDIR /bin/sh -c 'useradd -m user'
|
RUN chroot $TMPDIR /bin/sh -c 'useradd -m user'
|
||||||
RUN sed -i 's/root:\*:/root::/' $TMPDIR/etc/shadow
|
RUN sed -i 's/root:\*:/root::/' $TMPDIR/etc/shadow
|
||||||
|
Loading…
Reference in New Issue
Block a user