Add yum to oraclelinux images
This commit is contained in:
parent
cc470d2105
commit
35d34fdbe0
@ -21,7 +21,7 @@ RUN yum --installroot=$TMPDIR \
|
|||||||
--releasever=_VERSION_ \
|
--releasever=_VERSION_ \
|
||||||
--disablerepo='*' \
|
--disablerepo='*' \
|
||||||
--enablerepo=ol_VERSION__baseos_latest \
|
--enablerepo=ol_VERSION__baseos_latest \
|
||||||
-y install openssh-server openssh-clients dhclient
|
-y install openssh-server openssh-clients dhclient yum
|
||||||
|
|
||||||
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