getty: Make namespacing more obvious

Warn the user in the MOTD
Add "(ns: getty)" or "(ns: sshd)" to the PS1
Use `agetty` and `-a root` to ensure we get a login shell when insecure

Signed-off-by: Dave Tucker <dt@docker.com>
This commit is contained in:
Dave Tucker
2017-06-28 17:10:24 +01:00
parent e771cb82a1
commit 5fb025824f
5 changed files with 12 additions and 4 deletions

View File

@@ -1 +1,4 @@
Welcome to LinuxKit
Welcome to LinuxKit!
NOTE: This system is namespaced.
The namespace you are currently in may not be the root.

View File

@@ -0,0 +1 @@
export PS1="(ns: sshd) $PS1"