You are not logged in.
Pages: 1
hi,
i'm following up on my question originally posted on twitter https://twitter.com/k0a1a/status/1080575559619526656
is there a recommended way of running dockerd?
esp since docker versions > 17.12 (debian packages) don't seem to include /etc/init.d/docker
from what i gather there should be docker-ce package in ascii and beowulf repos, but:
$ apt policy docker-ce
docker-ce:
Installed: (none)
Candidate: (none)
Version table:
while
$ cat /etc/apt/sources.list
deb http://de.deb.devuan.org/merged ascii main contrib
deb-src http://de.deb.devuan.org/merged ascii main
deb http://de.deb.devuan.org/merged ascii-security main
deb-src http://de.deb.devuan.org/merged ascii-security main
deb http://de.deb.devuan.org/merged ascii-updates main
deb-src http://de.deb.devuan.org/merged ascii-updates main
deb http://packages.devuan.org/devuan beowulf main contrib
deb http://de.deb.devuan.org/merged beowulf main contrib
what am i missing?
thanks!
Last edited by danja (2019-01-04 10:32:12)
Offline
I'm not sure it is the right way but I run docker-ce jessie on devuan ascii instead of docker-ce stretch because of that problem.
Offline
for now running with
(while :; do /usr/bin/dockerd; sleep 1; done) &
in /etc/rc.local
which is probably very broken but seems to work
Last edited by danja (2019-01-04 15:49:06)
Offline
I setup docker on Devuan Ascii recently, and this is what I did:
These instructions assume you are running an x86-64 Ascii build (docker typically doesn't do as well on x86, and haven't tried ARM). They were tested in December of 2018 and are likely to change.
Follow the instructions here:
https://docs.docker.com/install/linux/docker-ce/debian/
On the step for adding the docker repo to apt.sources you will use
deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
instead of
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
Because lsb_release on the latter will add ascii, and that won't work.
At this point docker is installed, and the binary in /usr/bin/ is available but docker
server isn't running.
the command # dockerd will run the docker daemon, but we want an init script.
This post (link:https://paddy-hack.gitlab.io/posts/sand … th-devuan/) mentions that
aufs is not supported in the Linux 4.9 image from Jessie-backports. But we are using Ascii, and AUFS apparently works, no problem. No need to change to BTRFS in ASCII.
But, there is a problem: the sysvinit init scripts have been recently removed from docker-ce (link:
https://github.com/docker/for-linux/issues/482)
Next,
git clone https://github.com/moby/moby.git
and navigate to contrib/init/sysvinit-debian/ you will find an init script there that can be used... As well as a file for /etc/default
And after adding this init file, and starting the service, docker will load the hello-world file.
Not happy that they removed the init scripts... But I just looked at that issue above for the docker repo again, and it looks like they made some changes since I first installed docker on devuan. It might be that you don't need to borrow the script from the Moby repo.
Last edited by little (2019-01-07 18:15:20)
give a man an init, he takes an os
Offline
thanks for this @little
i've gone thought the very same steps myself but missed
git clone https://github.com/moby/moby.git
it might keep me in the devuan-verse after all
Last edited by danja (2019-01-07 21:15:14)
Offline
OK, so a working solutions seems to be to install docker-ce 18.06.1 first and then upgrade to the current:
# apt install docker-ce=18.06.1~ce~3-0~debian
# apt install docker-ce
docker-ce 18.06.1 seem to be the last package to include sysv init script
Offline
Pages: 1