From: invalid@invalid.invalid   
      
   Jimmy Logan writes:   
   > I'd like to create some kind of service container on rpi4b which I have,   
   > which would allow me to just install something in a normal way (not   
   > programming the whole installation process like dockerfiles), without   
   > changing anything on the current OS.   
      
   You don’t need any Dockerfiles to use Docker. So, perhaps Docker will   
   meet your needs.   
      
   To create a container you can SSH into:   
      
    $ docker run --detach -p 127.0.0.1:2222:22 --name example debian:stable sh   
   -c 'apt update && apt install -y openssh-server && /usr/sbin/sshd -D'   
      
   This takes a little while to complete, use ‘docker logs -f example’ to   
   monitor it. The base container is very slimmed down so you may want to   
   add other packages to the install command here.   
      
   Create a login:   
      
    $ docker container exec -it example bash   
    root@0c09f6c2a5e5:/# userdel rjk   
    root@0c09f6c2a5e5:/# adduser rjk   
    New password:   
    Retype new password:   
    passwd: password updated successfully   
    Changing the user information for rjk   
    Enter the new value, or press ENTER for the default   
    Full Name []:   
    Room Number []:   
    Work Phone []:   
    Home Phone []:   
    Other []:   
    Is the information correct? [Y/n] y   
      
   ...and then login:   
      
    $ ssh rjk@127.0.0.1 -p 2222   
    rjk@127.0.0.1's password:   
    Linux 0c09f6c2a5e5 6.12.34+rpt-rpi-2712 #1 SMP PREEMPT Debian    
   :6.12.34-1+rpt1 (2025-06-26) aarch64   
      
    The programs included with the Debian GNU/Linux system are free software;   
    the exact distribution terms for each program are described in the   
    individual files in /usr/share/doc/*/copyright.   
      
    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent   
    permitted by applicable law.   
    Last login: Sat Sep 6 13:35:59 2025 from 172.19.0.1   
    -bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8): No   
   such file or directory   
    rjk@0c09f6c2a5e5:~$   
      
   This all works on a Pi 5 running trixie. I don’t know of a reason it   
   wouldn’t work on a 4B but I’ve not tested it.   
      
   --   
   https://www.greenend.org.uk/rjk/   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|