From 22df1249b582a80f0a1c57d647549d0b91f1cb30 Mon Sep 17 00:00:00 2001 From: Faiz K Date: Sun, 4 Aug 2013 08:26:56 -0500 Subject: [PATCH] bash commands while in the container aren't in the transcript! Added. --- docs/sources/examples/running_ssh_service.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/sources/examples/running_ssh_service.rst b/docs/sources/examples/running_ssh_service.rst index c2f8b86aca..59ad1b1cab 100644 --- a/docs/sources/examples/running_ssh_service.rst +++ b/docs/sources/examples/running_ssh_service.rst @@ -40,7 +40,17 @@ The password is 'screencast' # now let's connect using -i for interactive and with -t for terminal # we execute /bin/bash to get a prompt. $ docker run -i -t base /bin/bash - # now let's commit it + # yes! we are in! + # now lets install openssh + $ apt-get update + $ apt-get install openssh-server + # ok. lets see if we can run it. + $ which sshd + # we need to create priviledge separation directory + $ mkdir /var/run/sshd + $ /usr/sbin/sshd + $ exit + # now let's commit it # which container was it? $ docker ps -a |more $ docker commit a30a3a2f2b130749995f5902f079dc6ad31ea0621fac595128ec59c6da07feea dhrp/sshd