X-Original-To: alpine-user@lists.alpinelinux.org Received: from mail-vk0-f49.google.com (mail-vk0-f49.google.com [209.85.213.49]) by lists.alpinelinux.org (Postfix) with ESMTP id 09D685C5068 for ; Fri, 1 Jun 2018 04:14:20 +0000 (GMT) Received: by mail-vk0-f49.google.com with SMTP id i190-v6so14684235vkd.13 for ; Thu, 31 May 2018 21:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=duniel-no.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3Zqk+MTGH7LzdAKy/FbwA95h3HA22OSFIgyLoDJ91FM=; b=R0U5Jb8LM9ImfRBhPvq8VtVgrn8TnhpnIG5PtfIa+hD/SJ69vBe5/S92UtYXUFn2pL sVjvp0XePt2d2wGawvuewTGEPwg3ItxT1+QoREOS5eegwj2GrV5ao3i1YvBdo+jjW82Q TfQn0SFpGF0QeLS1HROs0NYKrqnGqUE6EDJW6BoLsk75Wi1HPvm5bIuqnNk3CvozHcLw DR3UBboVJwpiq0+EgAYX2/gCA+2bb+ZVdxT+C3TYVcIuFmmtzZ6SHJetHKjNWbnV/TlZ F5oSYAqE3tq4Y7hvjPRqiDzGN7KUz0PbD7xQMwfIxCIdYdm0gnwnwAbZ8kE69qu9Id2T e6Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3Zqk+MTGH7LzdAKy/FbwA95h3HA22OSFIgyLoDJ91FM=; b=EGmYnhbKNa5mVQoAZ0GIdKJXRUUAPsDfedKlIqwlqjSqj0HVkSGq1naMLWLLJlheEs AvvRt8WsVDstzCLvGPKvJbOXnD163z6pws22eltdQN0fVihlb7MVBwDkBOiJMoDpbG8z ERTSG7Y5lud5qjSild5FEHBlsVbJ2zhEMBtEKhPIQWSwrSHFAZsBZlJMAW0qWDMnB4ix GHhauQ8cddLXfV5KlUuinVkn7fg6QJIrLmibAPoUjF1+b2C0hvIlsMkFxR8RfhTqDB01 iwKBlr/3xTSwqsT6jmyvlI6qULBcMGjRreCWtjdQtZWjMkht/Kz8GSFLKahyU+oIlFFd pUig== X-Gm-Message-State: ALKqPwed/FmWBCToddoImCivr8E35hzDmNxwY6IhMuVCHABxTR0KotNP dH6Asa82n9+zic4DJQlSaMnkb3XCgG+gCBr2e66Ztw== X-Google-Smtp-Source: ADUXVKJhcjmzphhsoscPO6cmmfrBMjSXDE9SwejIvFx8mWX9iaRot3uJwqmOPNnmgRkSrFvt2pWhd2o/gVB3UEVLt60= X-Received: by 2002:a1f:8749:: with SMTP id j70-v6mr5809410vkd.57.1527826459839; Thu, 31 May 2018 21:14:19 -0700 (PDT) X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 References: In-Reply-To: From: Daniel Isaksen Date: Fri, 1 Jun 2018 06:14:07 +0200 Message-ID: Subject: Re: [alpine-user] Open RC SSH Docker To: Gabor Toth Cc: alpine-user@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="0000000000006ae3ad056d8cd1ed" --0000000000006ae3ad056d8cd1ed Content-Type: text/plain; charset="UTF-8" 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 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 > --0000000000006ae3ad056d8cd1ed Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thing is, most service managers have to be PID 1. It shou= ld 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). T= o run ssh as a service, I wanted to use openrc. However, if I simply add &q= uot;apk add openrc --no-cache" to my docker file,= I get a bunch of error messages (see below) when running the container wit= h the new image (I use a precomputed init script=C2=A0 in which I run '= openrc boot' and then 'openrc -s sshd start')

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

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

Thanks,

Gabor




Error messages.


chi= ld process started successfully, parent exiting
=C2=A0* Caching s= ervice dependencies ...
Service `hwdrivers' needs non existen= t service `dev'=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0[ ok ]
=C2=A0* Caching service dependencies ...<= /div>
Service `hwdrivers' needs non existent service `dev'=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[ ok ]=
/lib/rc/sh/openrc-run.sh: line 273: can't create /sys/fs/cgr= oup/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<= /div>
/lib/rc/sh/openrc-run.sh: line 273: can't create /sys/fs/cgro= up/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 sys= tem
/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 fil= e system
/lib/rc/sh/openrc-run.sh: line 273: can't create /sy= s/fs/cgroup/hugetlb/tasks: Read-only file system
/lib/rc/sh/openr= c-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/o= penrc-run.sh: line 273: can't create /sys/fs/cgroup/net_prio/tasks: Rea= d-only file system
/lib/rc/sh/openrc-run.sh: line 273: can't = create /sys/fs/cgroup/perf_event/tasks: Read-only file system
/li= b/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&#= 39;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/ta= sks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: ca= n't create /sys/fs/cgroup/cpu/tasks: Read-only file system
/l= ib/rc/sh/openrc-run.sh: line 273: can't create /sys/fs/cgroup/cpuacct/t= asks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: c= an'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/devic= es/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 27= 3: 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: li= ne 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/cgr= oup/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/open= rc-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
--0000000000006ae3ad056d8cd1ed-- --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---