зеркало из https://github.com/microsoft/docker.git
bash commands while in the container aren't in the transcript! Added.
This commit is contained in:
Родитель
ea2486d631
Коммит
22df1249b5
|
@ -40,6 +40,16 @@ The password is 'screencast'
|
||||||
# now let's connect using -i for interactive and with -t for terminal
|
# now let's connect using -i for interactive and with -t for terminal
|
||||||
# we execute /bin/bash to get a prompt.
|
# we execute /bin/bash to get a prompt.
|
||||||
$ docker run -i -t base /bin/bash
|
$ docker run -i -t base /bin/bash
|
||||||
|
# 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
|
# now let's commit it
|
||||||
# which container was it?
|
# which container was it?
|
||||||
$ docker ps -a |more
|
$ docker ps -a |more
|
||||||
|
|
Загрузка…
Ссылка в новой задаче