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.
Create a login:[...]
$ docker container exec -it example bash
root@0c09f6c2a5e5:/# userdel rjk
root@0c09f6c2a5e5:/# adduser rjk
New password:
Richard Kettlewell <[email protected]d> writes:
Create a login:[...]
$ docker container exec -it example bash
root@0c09f6c2a5e5:/# userdel rjk
root@0c09f6c2a5e5:/# adduser rjk
New password:
Of course the userdel part is unnecessary; left over from
experimentation to get the example right.
Jimmy Logan <[email protected]> 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.
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.
The other end of of the spectrum would be hand crafted
chroot ...
On Sat, 6 Sep 2025 18:10:52 -0000 (UTC), Jimmy Logan wrote:
The other end of of the spectrum would be hand crafted
chroot ...
chroot is useless for proper isolation.
Richard Kettlewell <[email protected]d> wrote:
Jimmy Logan <[email protected]> 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.
Isn't the problem that Docker isn't persistent? Next time the
container is started it loses the state from the previous time - so
any changes you make, starting with installing any packages and then
on, have to be done again?
Theo <[email protected]> writes:
Richard Kettlewell <[email protected]d> wrote:
Jimmy Logan <[email protected]> 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.
Isn't the problem that Docker isn't persistent? Next time the
container is started it loses the state from the previous time - so
any changes you make, starting with installing any packages and then
on, have to be done again?
Docker containers are persistent. If you stop a container then when you restart it, it will have the same contents it did before.
Interesting - I've never come across the 'docker container' command
before, only mainly using 'docker run' or 'docker exec'.
(Unfortunately it's terrible to google for, since even "docker
container" in quotes throws up a million hits about the generic
concept)
What happens if you reboot, does the same container keep running
including your changes?
On 2025-09-07, Lawrence D’Oliveiro <[email protected]d> wrote:
On Sat, 6 Sep 2025 18:10:52 -0000 (UTC), Jimmy Logan wrote:
The other end of of the spectrum would be hand crafted chroot ...
chroot is useless for proper isolation.
You're right, chroot can never be considered a secure isolation, but
for separating 'service packages' from 'host os packages', might be
enough, I mean, service running in chroot would not be "less secure"
than running it from the host, agree?
Richard Kettlewell <[email protected]d> wrote:
Jimmy Logan <[email protected]> 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.
Isn't the problem that Docker isn't persistent? Next time the container
is started it loses the state from the previous time - so any changes you make, starting with installing any packages and then on, have to be done again?
You can address that two ways. One is to map volumes into the container so that they will keep the data on the host filesystem and it'll be there again when the container restarts. Or you can make your changes then snapshot the container ('docker commit') and then launch the snapshot as a new container.
As Richard says, containers are persistent.
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,070 |
Nodes: | 10 (0 / 10) |
Uptime: | 222:32:35 |
Calls: | 13,737 |
Calls today: | 1 |
Files: | 186,969 |
D/L today: |
1,720 files (586M bytes) |
Messages: | 2,420,520 |