January 9, 2015

Set up GlassFish 4.1 Nova-Docker Container via phusion/baseimage on RDO Juno

The problem here is that  phusion/baseimage per  https://github.com/phusion/baseimage-docker  should provide ssh access to container , however it doesn't. Working with docker container there is easy workaround suggested by Mykola Gurov  in http://stackoverflow.com/questions/27816298/cannot-get-ssh-access-to-glassfish-4-1-docker-container
# docker exec container-id exec /usr/sbin/sshd -D 
which is of no help in case of Nova-Docker Container.  To bring sshd back to life
I added to Dockerfile :-
  RUN echo "/usr/sbin/sshd > log &" >> /etc/my_init.d/00_regen_ssh_host_keys.sh

Complete text of posting may be viewed here

Click Here!