Browse code

bash commands while in the container aren't in the transcript! Added.

Faiz K authored on 2013/08/04 22:26:56
Showing 1 changed files
... ...
@@ -40,7 +40,17 @@ The password is 'screencast'
40 40
 	 # now let's connect using -i for interactive and with -t for terminal 
41 41
 	 # we execute /bin/bash to get a prompt.
42 42
 	 $ docker run -i -t base /bin/bash
43
-	 # now let's commit it 
43
+	 # yes! we are in!
44
+     # now lets install openssh
45
+     $ apt-get update
46
+     $ apt-get install openssh-server
47
+     # ok. lets see if we can run it.
48
+     $ which sshd
49
+     # we need to create priviledge separation directory
50
+     $ mkdir /var/run/sshd
51
+     $ /usr/sbin/sshd
52
+     $ exit
53
+     # now let's commit it 
44 54
 	 # which container was it?
45 55
 	 $ docker ps -a |more
46 56
 	 $ docker commit a30a3a2f2b130749995f5902f079dc6ad31ea0621fac595128ec59c6da07feea dhrp/sshd