BurmillaOS type of console for Flatcar Container Linux
SSH with user "core" ends up to normal Flatcar console.
SSH with user "rancher" ends up inside of console container.
variant: flatcar
version: 1.0.0
passwd:
groups:
- name: rancher
users:
- name: core
ssh_authorized_keys:
- ssh-ed25519 <removed>
- name: rancher
ssh_authorized_keys:
- ssh-ed25519 <removed>
primary_group: rancher
groups:
- docker
- sudo
shell: /opt/bin/enter-console.sh
storage:
files:
- path: /opt/bin/enter-console.sh
mode: 0755
contents:
inline: |
#!/bin/bash
/usr/bin/docker exec -it console /bin/bash
docker run -it --rm \
--name console\
--privileged \
--cgroupns=host \
--net=host \
--uts=host \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
-v /:/host \
-v /etc/passwd:/etc/passwd \
-v /etc/group:/etc/group \
-v /etc/shadow:/etc/shadow \
-v /usr/share/baselayout/sudoers:/etc/sudoers \
-v /var/run/docker.sock:/var/run/docker.sock \
--user 1000:1000 \
--group-add 233 \
--oom-score-adj -100 \
burmilla/console:dev6
- Enable console colors
- Use SSH from console instead of host