Sign inSign up

yogi9312/rhel8

By yogi9312

•Updated over 3 years ago

Image
0

75

yogi9312/rhel8 repository overview

Dockerfile for this image

  • FROM redhat/ubi8
  • RUN yum install openssh* -y
  • RUN yum install procps-ng net-tools -y
  • RUN echo root:redhat | chpasswd
  • RUN echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config
  • RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
  • RUN sed -i "s/# StrictHostKeyChecking ask/StrictHostKeyChecking no/g" /etc/ssh/ssh_config
  • CMD ["/usr/sbin/init", "&&", "systemctl", "start","sshd" ]

To Launch container of this image:

  • docker run -itd --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --tmpfs /run --name=container-name image:name

Note: This image sets root's password to redhat

Tag summary

Content type

Image

Digest

sha256:c796f1973…

Size

274.7 MB

Last updated

over 3 years ago

docker pull yogi9312/rhel8:nfs