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 - linuxkit/containerd:72df922e49a363a4ad53d88cd1a8a3ae4d41086f
services: services:
- name: getty - name: getty
image: linuxkit/getty:v0.4 image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env: env:
- INSECURE=true - INSECURE=true
trust: trust:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -11,7 +11,7 @@ onboot:
image: linuxkit/sysctl:v0.4 image: linuxkit/sysctl:v0.4
services: services:
- name: getty - name: getty
image: linuxkit/getty:v0.4 image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env: env:
- INSECURE=true - INSECURE=true
- name: rngd - 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"] 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: services:
- name: sshd - name: sshd
image: linuxkit/sshd:v0.4 image: linuxkit/sshd:2c7e6e36bd0ffa2b3d950cf9128da89ba3375dbb
- name: vpnkit-forwarder - name: vpnkit-forwarder
image: linuxkit/vpnkit-forwarder:v0.4 image: linuxkit/vpnkit-forwarder:v0.4
binds: binds:

View File

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

View File

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

View File

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

View File

@ -2,3 +2,4 @@ Welcome to LinuxKit!
NOTE: This system is namespaced. NOTE: This system is namespaced.
The namespace you are currently in may not be the root. 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. NOTE: This system is namespaced.
The namespace you are currently in may not be the root. 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"] command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
services: services:
- name: getty - name: getty
image: linuxkit/getty:v0.4 image: linuxkit/getty:44730fd0a7c59dbacf5b48b54ba33f551bcf7ef0
env: env:
- INSECURE=true - INSECURE=true
trust: trust:

View File

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

View File

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

View File

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

View File

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

View File

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