Merge pull request #3059 from deitch/motd-namespace-warning

Add services.linuxkit warning to motd for sshd and getty
This commit is contained in:
Avi Deitcher 2018-06-06 17:16:23 +03:00 committed by GitHub
commit 414b4c5275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
32 changed files with 37 additions and 35 deletions

View File

@ -38,7 +38,7 @@ init:
- linuxkit/containerd:72df922e49a363a4ad53d88cd1a8a3ae4d41086f
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
trust:

View File

@ -18,7 +18,7 @@ services:
- name: rngd
image: linuxkit/rngd:v0.4
- name: sshd
image: linuxkit/sshd:v0.4
image: linuxkit/sshd:2c7e6e36bd0ffa2b3d950cf9128da89ba3375dbb
binds:
- /run/config/ssh/authorized_keys:/root/.ssh/authorized_keys
- name: nginx

View File

@ -15,7 +15,7 @@ services:
- name: dhcpcd
image: linuxkit/dhcpcd:v0.4
- name: sshd
image: linuxkit/sshd:v0.4
image: linuxkit/sshd:2c7e6e36bd0ffa2b3d950cf9128da89ba3375dbb
files:
- path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub

View File

@ -22,7 +22,7 @@ onboot:
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: rngd

View File

@ -52,7 +52,7 @@ services:
image: linuxkit/acpid:v0.4
# Enable getty for easier debugging
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
# Run ntpd to keep time synchronised in the VM

View File

@ -18,7 +18,7 @@ onboot:
command: ["/usr/bin/mountie", "/var/lib/docker"]
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: rngd

View File

@ -16,13 +16,13 @@ onboot:
image: linuxkit/metadata:v0.4
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: rngd
image: linuxkit/rngd:v0.4
- name: sshd
image: linuxkit/sshd:v0.4
image: linuxkit/sshd:2c7e6e36bd0ffa2b3d950cf9128da89ba3375dbb
binds:
- /run/config/ssh/authorized_keys:/root/.ssh/authorized_keys
- name: nginx

View File

@ -14,7 +14,7 @@ onboot:
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
# to make insecure with passwordless root login, uncomment following lines
#env:
# - INSECURE=true

View File

@ -18,7 +18,7 @@ onshutdown:
command: ["/bin/echo", "so long and thanks for all the fish"]
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
runtime:

View File

@ -12,7 +12,7 @@ onboot:
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: influxdb

View File

@ -11,7 +11,7 @@ onboot:
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
trust:

View File

@ -7,7 +7,7 @@ init:
- linuxkit/containerd:72df922e49a363a4ad53d88cd1a8a3ae4d41086f
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: rngd

View File

@ -19,7 +19,7 @@ services:
- name: rngd
image: linuxkit/rngd:v0.4
- name: sshd
image: linuxkit/sshd:v0.4
image: linuxkit/sshd:2c7e6e36bd0ffa2b3d950cf9128da89ba3375dbb
binds:
- /run/config/ssh/authorized_keys:/root/.ssh/authorized_keys
- name: nginx

View File

@ -24,11 +24,11 @@ services:
- name: rngd
image: linuxkit/rngd:v0.4
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: sshd
image: linuxkit/sshd:v0.4
image: linuxkit/sshd:2c7e6e36bd0ffa2b3d950cf9128da89ba3375dbb
files:
- path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub

View File

@ -13,7 +13,7 @@ onboot:
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
# Currently redis:4.0.6-alpine has trust issue with multi-arch

View File

@ -11,7 +11,7 @@ onboot:
image: linuxkit/sysctl:v0.4
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: rngd

View File

@ -14,7 +14,7 @@ onboot:
command: ["/sbin/rngd", "-1"]
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: rngd
@ -22,7 +22,7 @@ services:
- name: dhcpcd
image: linuxkit/dhcpcd:v0.4
- name: sshd
image: linuxkit/sshd:v0.4
image: linuxkit/sshd:2c7e6e36bd0ffa2b3d950cf9128da89ba3375dbb
files:
- path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub

View File

@ -24,7 +24,7 @@ onboot:
command: ["/swap.sh", "--path", "/var/external/swap", "--size", "1G", "--encrypt"]
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: rngd

View File

@ -14,7 +14,7 @@ onboot:
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: tss

View File

@ -11,7 +11,7 @@ onboot:
image: linuxkit/sysctl:v0.4
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: rngd

View File

@ -19,7 +19,7 @@ onboot:
command: ["sh", "-c", "mkdir /host_var/vpnkit && mount -v -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 port /host_var/vpnkit"]
services:
- name: sshd
image: linuxkit/sshd:v0.4
image: linuxkit/sshd:2c7e6e36bd0ffa2b3d950cf9128da89ba3375dbb
- name: vpnkit-forwarder
image: linuxkit/vpnkit-forwarder:v0.4
binds:

View File

@ -16,13 +16,13 @@ onboot:
image: linuxkit/metadata:v0.4
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: rngd
image: linuxkit/rngd:v0.4
- name: sshd
image: linuxkit/sshd:v0.4
image: linuxkit/sshd:2c7e6e36bd0ffa2b3d950cf9128da89ba3375dbb
binds:
- /run/config/ssh/authorized_keys:/root/.ssh/authorized_keys
- name: nginx

View File

@ -40,7 +40,7 @@ onboot:
net: /run/netns/wg1
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
net: /run/netns/wg1

View File

@ -18,7 +18,7 @@ onshutdown:
command: ["/bin/echo", "so long and thanks for all the fish"]
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: rngd

View File

@ -2,3 +2,4 @@ Welcome to LinuxKit!
NOTE: This system is namespaced.
The namespace you are currently in may not be the root.
System services are namespaced; to access, use `ctr -n linuxkit.service ...`

View File

@ -2,3 +2,4 @@ Welcome to LinuxKit!
NOTE: This system is namespaced.
The namespace you are currently in may not be the root.
System services are namespaced; to access, use `ctr -n linuxkit.service ...`

View File

@ -11,7 +11,7 @@ onboot:
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
trust:

View File

@ -12,7 +12,7 @@ onboot:
image: linuxkit/sysctl:v0.4
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: rngd

View File

@ -28,9 +28,9 @@ onboot:
- /lib:/lib # for ifconfig
services:
- name: sshd
image: linuxkit/sshd:v0.4
image: linuxkit/sshd:2c7e6e36bd0ffa2b3d950cf9128da89ba3375dbb
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
files:

View File

@ -13,7 +13,7 @@ services:
- name: dhcpcd
image: linuxkit/dhcpcd:v0.4
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
trust:

View File

@ -14,7 +14,7 @@ onboot:
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env:
- INSECURE=true
- name: rngd

View File

@ -12,7 +12,7 @@ onboot:
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services:
- name: getty
image: linuxkit/getty:v0.4
image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
files:
- path: etc/getty.shadow
# sample sets password for root to "abcdefgh" (without quotes)