Skip to content

illusivedeveloper/rhel7_systemd_openssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rhel7_systemd_openssh

ubi7_init ubi image with systemd and openssh-server (also includes openssh-clients and openssh)

  1. To build image:

cd path/to/repo $ docker build -t image_name .

  1. To run image use:

$ docker container run -d -p 911:22 --tmpfs /run --tmpfs /tmp -v /sys/fs/cgroup:/sys/fs/cgroup image_name

To get into the shell of continer use:

$ docker exec container_name /bin/bash

To set root password for ssh login use inside container:

$ echo 'newpassword' |passwd root --stdin #to set paswd after login for ssh Or you can copy your ssh public key in ~/.ssh/authorized_keys file to do password login.

Steps in steps file to launch container with unprivileged disabled oci-systemd-hooks and set paswd in container to ssh.

About

rhel7_init ubi image with systemd and openssh

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published