Browse Source

Minor changes to SSHd example

Docker-DCO-1.1-Signed-off-by: James Turnbull <james@lovedthanlost.net> (github: jamtur01)
James Turnbull 10 years ago
parent
commit
f1c319f77c
1 changed files with 6 additions and 5 deletions
  1. 6 5
      docs/sources/examples/running_ssh_service.md

+ 6 - 5
docs/sources/examples/running_ssh_service.md

@@ -46,7 +46,8 @@ the container's port 22 is mapped to:
 
 
 And now you can ssh as `root` on the container's IP address (you can find it
 And now you can ssh as `root` on the container's IP address (you can find it
 with `docker inspect`) or on port `49154` of the Docker daemon's host IP address
 with `docker inspect`) or on port `49154` of the Docker daemon's host IP address
-(`ip address` or `ifconfig` can tell you that):
+(`ip address` or `ifconfig` can tell you that) or `localhost` if on the
+Docker daemon host:
 
 
     $ ssh root@192.168.1.2 -p 49154
     $ ssh root@192.168.1.2 -p 49154
     # The password is ``screencast``.
     # The password is ``screencast``.
@@ -55,15 +56,15 @@ with `docker inspect`) or on port `49154` of the Docker daemon's host IP address
 ## Environment variables
 ## Environment variables
 
 
 Using the `sshd` daemon to spawn shells makes it complicated to pass environment
 Using the `sshd` daemon to spawn shells makes it complicated to pass environment
-variables to the user's shell via the simple Docker mechanisms, as `sshd` scrubs
+variables to the user's shell via the normal Docker mechanisms, as `sshd` scrubs
 the environment before it starts the shell.
 the environment before it starts the shell.
 
 
-If you're setting values in the Dockerfile using `ENV`, you'll need to push them
-to a shell initialisation file like the `/etc/profile` example in the Dockerfile
+If you're setting values in the `Dockerfile` using `ENV`, you'll need to push them
+to a shell initialization file like the `/etc/profile` example in the `Dockerfile`
 above.
 above.
 
 
 If you need to pass`docker run -e ENV=value` values, you will need to write a
 If you need to pass`docker run -e ENV=value` values, you will need to write a
-short script to do the same before you start `sshd -D` - and then replace the
+short script to do the same before you start `sshd -D` and then replace the
 `CMD` with that script.
 `CMD` with that script.
 
 
 ## Clean up
 ## Clean up