~alpine/users

1

[alpine-user] Open RC SSH Docker

Details
Message ID
<CANKXKxG+n4LXuDWgSNMfAmGZBV3NDfC-FULr6mAFOJ-dp0vRBA@mail.gmail.com>
Sender timestamp
1527804848
DKIM signature
missing
Download raw message
Dear All,

I am installing ssh and openrc in an Alpine based docker (8-alpine). To run
ssh as a service, I wanted to use openrc. However, if I simply add "apk add
openrc --no-cache" to my docker file, I get a bunch of error messages (see
below) when running the container with the new image (I use a precomputed
init script  in which I run 'openrc boot' and then 'openrc -s sshd start')

If I include all the additional - not very clear- code from here
https://github.com/dockage/alpine-openrc/blob/master/Dockerfile, things
seem to be working fine.

However, we would like to keep our Docker file clean without a great amount
of unclear code. So I am wondering if there is any straight-forward way to
install openssh, then a service manager tool that starts it upon booting.

Thanks,

Gabor




Error messages.


child process started successfully, parent exiting
 * Caching service dependencies ...
Service `hwdrivers' needs non existent service `dev'

                         [ ok ]
 * Caching service dependencies ...
Service `hwdrivers' needs non existent service `dev'

                         [ ok ]
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/blkio/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create /sys/fs/cgroup/cpu/tasks:
Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/cpuacct/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/cpuset/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/devices/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/freezer/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/hugetlb/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/memory/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/net_cls/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/net_prio/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/perf_event/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create /sys/fs/cgroup/pids/tasks:
Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/systemd/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/blkio/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create /sys/fs/cgroup/cpu/tasks:
Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/cpuacct/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/cpuset/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/devices/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/freezer/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/hugetlb/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/memory/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/net_cls/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/net_prio/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/perf_event/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create /sys/fs/cgroup/pids/tasks:
Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't create
/sys/fs/cgroup/systemd/tasks: Read-only file system
Daniel Isaksen <d@duniel.no>
Details
Message ID
<CAFWK1CDEZ+00A8b6pA1GC7Uu+9utcv1gxqtTarCbew+1SFfYmw@mail.gmail.com>
In-Reply-To
<CANKXKxG+n4LXuDWgSNMfAmGZBV3NDfC-FULr6mAFOJ-dp0vRBA@mail.gmail.com> (view parent)
Sender timestamp
1527826447
DKIM signature
missing
Download raw message
Thing is, most service managers have to be PID 1. It should work if you
take that into consideration.

- Daniel

On Fri, Jun 1, 2018, 12:14 AM Gabor Toth <gabor.toth@maximilianeum.de>
wrote:

> Dear All,
>
> I am installing ssh and openrc in an Alpine based docker (8-alpine). To
> run ssh as a service, I wanted to use openrc. However, if I simply add "apk
> add openrc --no-cache" to my docker file, I get a bunch of error messages
> (see below) when running the container with the new image (I use a
> precomputed init script  in which I run 'openrc boot' and then 'openrc -s
> sshd start')
>
> If I include all the additional - not very clear- code from here
> https://github.com/dockage/alpine-openrc/blob/master/Dockerfile, things
> seem to be working fine.
>
> However, we would like to keep our Docker file clean without a great
> amount of unclear code. So I am wondering if there is any straight-forward
> way to install openssh, then a service manager tool that starts it upon
> booting.
>
> Thanks,
>
> Gabor
>
>
>
>
> Error messages.
>
>
> child process started successfully, parent exiting
>  * Caching service dependencies ...
> Service `hwdrivers' needs non existent service `dev'
>
>                            [ ok ]
>  * Caching service dependencies ...
> Service `hwdrivers' needs non existent service `dev'
>
>                            [ ok ]
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/blkio/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create /sys/fs/cgroup/cpu/tasks:
> Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/cpuacct/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/cpuset/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/devices/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/freezer/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/hugetlb/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/memory/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/net_cls/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/net_prio/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/perf_event/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/pids/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/systemd/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/blkio/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create /sys/fs/cgroup/cpu/tasks:
> Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/cpuacct/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/cpuset/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/devices/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/freezer/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/hugetlb/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/memory/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/net_cls/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/net_prio/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/perf_event/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/pids/tasks: Read-only file system
> /lib/rc/sh/openrc-run.sh: line 273: can't create
> /sys/fs/cgroup/systemd/tasks: Read-only file system
>
Reply to thread Export thread (mbox)