X-Original-To: alpine-user@lists.alpinelinux.org Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by lists.alpinelinux.org (Postfix) with ESMTP id 6AD305C5019 for ; Thu, 31 May 2018 22:14:09 +0000 (GMT) Received: by mail-wm0-f49.google.com with SMTP id t11-v6so56661216wmt.0 for ; Thu, 31 May 2018 15:14:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maximilianeum-de.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=NEqpoTkm2EvpyUi2D/iucpS04UqHudAKuZzbSwjs0b4=; b=w4JVlncat1gaJy5lz1KSTZN0YbyxFa9d7WCJBLZ+MS9ZgHJiG/lGWw7CwraTHaSzSu 1BRJOEmGlm6+c3dY21LdJSospDdcFUtAO0wSpRs9IzKR4qjYkBqsBfP3jur+Tdlb703R vauCq2WaeRFzB5P6YmNcyj54r4SKLUzjqfiD81vuS4EBy3GgSlKfjDYqhdPhX+r0W1Mg 63qHeAVQ+sZQCQyer/TRfcp2H+qXybl7T0pwKyRygFnpjaXNtoHEYlQm5uZb+5Dtf+JC NnxD17RmyXIipKNq4r7DVSONT1rZ0+HES9KoQqY3jOmaTwDhusb49WGzUIR1OZw+fSXH K+JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=NEqpoTkm2EvpyUi2D/iucpS04UqHudAKuZzbSwjs0b4=; b=FgBAXww+IkE+2JHiTLK75cID3jU/2pxkZ0FTyI13q5HT9fQGwBy1TAXHN/fDUw2t// wMZLZMv2H130hw+BFGmq07tmG2/0+GIADtugp6EdZ7fMdGTxtw/3wZO0O2XVpaytFHl/ 1xHPGuXODTXOTHxkYcdCmGBp30qFuEP28ozcBfPF6AZSiMgX6wXrsu9EwmqSgaasEZ9K S0ZTIq+ewz/N6f89Gr0Amn0Hl+6574lOgIfWJKVypEy7CndqV+/a0UKfvz6ETOo/NjlU 1IP6exQnWyQDgtphDxs4vmnJ/gYhe0CZ6q5CdGT1XDAJfrSZSXwKqRk/PQlBRC8YJcYT iEuw== X-Gm-Message-State: ALKqPwdQVswNrzqooaxk89M2EphBS6p+5HcfU4bpQyqOKlyQ7nQYIuR7 Wgl24I2Ll0DHQ9pB0XXNGr6FbV8ZhwMj028z4J6asVxu X-Google-Smtp-Source: ADUXVKI4LDyPKxxdwpz7mVbdwyys8mO+zerrm3+N6G1XfmmbTTebYRleGT4x1R2DA91lprqyZyTZS76q+U1Qj0wU0dY= X-Received: by 2002:a50:8cb7:: with SMTP id q52-v6mr9425378edq.17.1527804848674; Thu, 31 May 2018 15:14:08 -0700 (PDT) X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 2002:a50:8b06:0:0:0:0:0 with HTTP; Thu, 31 May 2018 15:14:08 -0700 (PDT) From: Gabor Toth Date: Thu, 31 May 2018 18:14:08 -0400 Message-ID: Subject: [alpine-user] Open RC SSH Docker To: alpine-user@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="0000000000004aa77f056d87c9de" --0000000000004aa77f056d87c9de Content-Type: text/plain; charset="UTF-8" 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 --0000000000004aa77f056d87c9de Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear All,

I am installing ssh and openr= c in an Alpine based docker (8-alpine). To run ssh as a service, I wanted t= o 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 precomput= ed init script=C2=A0 in which I run 'openrc boot' and then 'ope= nrc -s sshd start')

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

However, we would like to keep our Docker file clean w= ithout a great amount of unclear code. So I am wondering if there is any st= raight-forward way to install openssh, then a service manager tool that sta= rts it upon booting.=C2=A0

Thanks,

<= /div>
Gabor




=
Error messages.


child process started successfully, parent exiting
=C2=A0* Cachi= ng service dependencies ...
Service `hwdrivers' needs non exi= stent 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 .= ..
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= /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 sys= tem
/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/o= penrc-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 cr= eate /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= 9;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/t= asks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 273: c= an'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/blki= o/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/cpuac= ct/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 27= 3: 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/d= evices/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: lin= e 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/cgr= oup/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 sy= stem
/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-ru= n.sh: line 273: can't create /sys/fs/cgroup/net_prio/tasks: Read-only f= ile 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-o= nly file system
/lib/rc/sh/openrc-run.sh: line 273: can't cre= ate /sys/fs/cgroup/systemd/tasks: Read-only file system
--0000000000004aa77f056d87c9de-- --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---