| ... | ... |
@@ -72,7 +72,7 @@ Connect to the host os with the redis-cli. |
| 72 | 72 |
|
| 73 | 73 |
docker ps # grab the new container id |
| 74 | 74 |
docker port <container_id> 6379 # grab the external port |
| 75 |
- ip a s # grab the host ip address |
|
| 75 |
+ ip addr show # grab the host ip address |
|
| 76 | 76 |
redis-cli -h <host ipaddress> -p <external port> |
| 77 | 77 |
redis 192.168.0.1:49153> set docker awesome |
| 78 | 78 |
OK |
| ... | ... |
@@ -59,7 +59,7 @@ The password is 'screencast' |
| 59 | 59 |
# it has now given us a port to connect to |
| 60 | 60 |
# we have to connect using a public ip of our host |
| 61 | 61 |
$ hostname |
| 62 |
- # *ifconfig* is deprecated, better use *ip a s* now |
|
| 62 |
+ # *ifconfig* is deprecated, better use *ip addr show* now |
|
| 63 | 63 |
$ ifconfig |
| 64 | 64 |
$ ssh root@192.168.33.10 -p 49153 |
| 65 | 65 |
# Ah! forgot to set root passwd |
| ... | ... |
@@ -71,7 +71,7 @@ The password is 'screencast' |
| 71 | 71 |
$ docker commit 9e863f0ca0af31c8b951048ba87641d67c382d08d655c2e4879c51410e0fedc1 dhrp/sshd |
| 72 | 72 |
$ docker run -d -p 22 dhrp/sshd /usr/sbin/sshd -D |
| 73 | 73 |
$ docker port a0aaa9558c90cf5c7782648df904a82365ebacce523e4acc085ac1213bfe2206 22 |
| 74 |
- # *ifconfig* is deprecated, better use *ip a s* now |
|
| 74 |
+ # *ifconfig* is deprecated, better use *ip addr show* now |
|
| 75 | 75 |
$ ifconfig |
| 76 | 76 |
$ ssh root@192.168.33.10 -p 49154 |
| 77 | 77 |
# Thanks for watching, Thatcher thatcher@dotcloud.com |