Run Docker in Porteus

Post here if you are a new Porteus member and you're looking for some help.
beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Run Docker in Porteus

Post#16 by beny » 03 Nov 2021, 22:11

hi Testuser i have used a stock porteus to start docker and i have seen that cgroupfs is not loaded only the elogin so you have to load it manually in terminal: mount -t cgroup -o all cgroup /sys/fs/cgroup
start dockerd and try please.
guest@porteus:~$ docker pull archlinux
Using default tag: latest
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=archlinux&tag=latest": dial unix /var/run/docker.sock: connect: permission denied
guest@porteus:~$ su root
Password:
root@porteus:/home/guest# docker pull archlinux
Using default tag: latest
latest: Pulling from library/archlinux
41a9f69bb30e: Extracting 134.4MB/134.4MB
0a6f83522215: Download complete

Testuser
Samurai
Samurai
Posts: 137
Joined: 26 May 2021, 15:11
Distribution: Porteus-v5.0-64-LXDE

Run Docker in Porteus

Post#17 by Testuser » 07 Dec 2021, 19:02

Hi Beny,

Sorry for the late reply. Was very busy with.

Like you said cgroup was not loaded. Tried a cgroup script to make it work and tried all your packages and kernel and finally Docker worked. :Yahoo!:

Thanks much. :crazy:

Really appreciate your efforts. :thumbsup: :hi:

Also do you please provide any links/tools/any guides for creating customized kernel.

Just curious to know what modification were done in "000-kernel.xzm" and why crippled sources needs to be added for it to work?

Thanks in Advance.

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Run Docker in Porteus

Post#18 by beny » 08 Dec 2021, 16:01

hi Testuser glad that work,well you have to use this tool for the kernel build:https://www.mediafire.com/file/z3mb7bpd ... arch-1.xzm
and you have to have also the devel package that have inside the gcc and other software,for the cgroup question:https://man7.org/linux/man-pages/man7/cgroups.7.html, the kernel builder, you can use a different config if you want with your configure,and there are two different environment that you can choose slackware and arch linux,is a powerful tool....

Testuser
Samurai
Samurai
Posts: 137
Joined: 26 May 2021, 15:11
Distribution: Porteus-v5.0-64-LXDE

Run Docker in Porteus

Post#19 by Testuser » 08 Dec 2021, 17:30

Hi Beny,

Thanks much for the detailed info. :roll:

You are really Full of Knowledge. :)

rulyua
Ronin
Ronin
Posts: 2
Joined: 02 Jan 2023, 12:49
Distribution: porteus5

Run Docker in Porteus

Post#20 by rulyua » 02 Jan 2023, 12:51

May i ask you to reupload kernel again? promise to upload it on more stable server :)

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Run Docker in Porteus

Post#21 by beny » 14 Jan 2023, 18:58

hi rulyua, this is the link for a cgroup full kernel that i have used time ago try if work for you the version is 5.17.6
https://www.mediafire.com/folder/0yvbly ... oup-kernel

rulyua
Ronin
Ronin
Posts: 2
Joined: 02 Jan 2023, 12:49
Distribution: porteus5

Run Docker in Porteus

Post#22 by rulyua » 23 Jan 2023, 20:42

thank you so much!
will test it and report results later

Post Reply