Run Docker in Porteus

Post here if you are a new Porteus member and you're looking for some help.
Testuser
Samurai
Samurai
Posts: 137
Joined: 26 May 2021, 15:11
Distribution: Porteus-v5.0-64-LXDE

Run Docker in Porteus

Post#1 by Testuser » 17 Oct 2021, 19:13

Hi Team,

Trying to start docker in porteus.

Downloaded the standalone binaries from below URL and tried the steps.
https://docs.docker.com/engine/install/ ... s-on-linux

Getting below error!!

WARN[2021-10-18T06:11:33.616122107+05:30] Unable to find blkio cgroup in mounts
WARN[2021-10-18T06:11:33.616137650+05:30] Unable to find cpuset cgroup in mounts
WARN[2021-10-18T06:11:33.616166146+05:30] Unable to find pids cgroup in mounts
INFO[2021-10-18T06:11:33.617352951+05:30] stopping healthcheck following graceful shutdown module=libcontainerd
INFO[2021-10-18T06:11:33.617373516+05:30] stopping event stream following graceful shutdown error="context canceled" module=libcontainerd namespace=plugins.moby
WARN[2021-10-18T06:11:34.618382325+05:30] grpc: addrConn.createTransport failed to connect to {unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}. Err :connection error: desc = "transport: Error while dialing dial unix:///var/run/docker/containerd/containerd.sock: timeout". Reconnecting... module=grpc
failed to start daemon: Devices cgroup isn't mounted

Tried a cgroup-mount script from github and ran that as root, still issue persist

Any Idea?

Thanks in advance :crazy: :unknown:

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

Run Docker in Porteus

Post#2 by beny » 17 Oct 2021, 19:36

hi take a look at this tread :https://www.linuxquestions.org/question ... 175679495/ there is a slackbuild for... seem

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

Run Docker in Porteus

Post#3 by Testuser » 17 Oct 2021, 19:59

Hi Beny,

Thanks much for the reply.

Will try this and let you know.

Appreciate for the quick response.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Run Docker in Porteus

Post#4 by Jack » 17 Oct 2021, 20:09

Sent you a PM .
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Run Docker in Porteus

Post#5 by Ed_P » 17 Oct 2021, 22:31

Jack wrote:
17 Oct 2021, 20:09
Sent you a PM .
Something you can't share? :o
Ed

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

Run Docker in Porteus

Post#6 by beny » 18 Oct 2021, 14:01

hi if someone want to fight with docker here the link to the slackware packages: https://www.mediafire.com/folder/90xhylh920mkz/docker the google-go-lang package is haevy try if work for... but this is a hurdle? ERRO[2021-10-18T16:10:36.198470430Z] AUFS is not supported over aufs storage-driver=aufs

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

Run Docker in Porteus

Post#7 by Testuser » 18 Oct 2021, 17:52

Thanks Beny and Jack.

Beny, i tried your way still get the same error "cgroup-mount" error. Seems some cgroup config error.

Hi Beny,

Thanks much for the packages.

Will try them and let you know.

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

Run Docker in Porteus

Post#8 by beny » 19 Oct 2021, 17:44

hi you need also docker-cli you have this output: add this package to the mediafire directory soon, ok added docker-cli and docker-compose in the same mediafire docker directory

Code: Select all

bash-5.1# docker

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Options:
      --config string      Location of client config files (default
                           "/root/.docker")
  -c, --context string     Name of the context to use to connect to the
                           daemon (overrides DOCKER_HOST env var and
                           default context set with "docker context use")
  -D, --debug              Enable debug mode
  -H, --host list          Daemon socket(s) to connect to
  -l, --log-level string   Set the logging level
                           ("debug"|"info"|"warn"|"error"|"fatal")
                           (default "info")
      --tls                Use TLS; implied by --tlsverify
      --tlscacert string   Trust certs signed only by this CA (default
                           "/root/.docker/ca.pem")
      --tlscert string     Path to TLS certificate file (default
                           "/root/.docker/cert.pem")
      --tlskey string      Path to TLS key file (default
                           "/root/.docker/key.pem")
      --tlsverify          Use TLS and verify the remote
  -v, --version            Print version information and quit

Management Commands:
  builder     Manage builds
  config      Manage Docker configs
  container   Manage containers
  context     Manage contexts
  image       Manage images
  manifest    Manage Docker image manifests and manifest lists
  network     Manage networks
  node        Manage Swarm nodes
  plugin      Manage plugins
  secret      Manage Docker secrets
  service     Manage services
  stack       Manage Docker stacks
  swarm       Manage Swarm
  system      Manage Docker
  trust       Manage trust on Docker images
  volume      Manage volumes

Commands:
  attach      Attach local standard input, output, and error streams to a running container
  build       Build an image from a Dockerfile
  commit      Create a new image from a container's changes
  cp          Copy files/folders between a container and the local filesystem
  create      Create a new container
  diff        Inspect changes to files or directories on a container's filesystem
  events      Get real time events from the server
  exec        Run a command in a running container
  export      Export a container's filesystem as a tar archive
  history     Show the history of an image
  images      List images
  import      Import the contents from a tarball to create a filesystem image
  info        Display system-wide information
  inspect     Return low-level information on Docker objects
  kill        Kill one or more running containers
  load        Load an image from a tar archive or STDIN
  login       Log in to a Docker registry
  logout      Log out from a Docker registry
  logs        Fetch the logs of a container
  pause       Pause all processes within one or more containers
  port        List port mappings or a specific mapping for the container
  ps          List containers
  pull        Pull an image or a repository from a registry
  push        Push an image or a repository to a registry
  rename      Rename a container
  restart     Restart one or more containers
  rm          Remove one or more containers
  rmi         Remove one or more images
  run         Run a command in a new container
  save        Save one or more images to a tar archive (streamed to STDOUT by default)
  search      Search the Docker Hub for images
  start       Start one or more stopped containers
  stats       Display a live stream of container(s) resource usage statistics
  stop        Stop one or more running containers
  tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
  top         Display the running processes of a container
  unpause     Unpause all processes within one or more containers
  update      Update configuration of one or more containers
  version     Show the Docker version information
  wait        Block until one or more containers stop, then print their exit codes

Run 'docker COMMAND --help' for more information on a command.

To get more help with docker, check out our guides at https://docs.docker.com/go/guides/
bash-5.1# 

                                 

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

Run Docker in Porteus

Post#9 by Testuser » 20 Oct 2021, 16:42

Hi Beny,

Thanks much for your effort.

I really appreciate it. :)

I already had docker, added the cli package as well.

Docker is running fine, but pulling an image is the issue, since dockerd daemon is not starting.

Below is message when tried to pull a package

root@porteus:/#docker pull ntop/ntopng
Using default tag: latest
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?


Dockerd gives the above error message :( :(

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

Run Docker in Porteus

Post#10 by beny » 20 Oct 2021, 21:11

hi i have start docker with this: dockerd --iptables=False and this is

bash-5.1$ docker pull openjdk
Using default tag: latest
latest: Pulling from library/openjdk
58c4eaffce77: Pull complete
e6a22c806ee8: Extracting [==================================================>] 13.49MB/13.49MB
e6a22c806ee8: Pull complete
e24190594061: Pull complete
Digest: sha256:c841c22e8f9de75a637f9850952ea89a931bdb437af6c2d943ab337cdb299a5e
Status: Downloaded newer image for openjdk:latest
docker.io/library/openjdk:latest
bash-5.1$
bash-5.1$
try if work for you in this way, in a system work but not in porteus we have to dig more....

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

Run Docker in Porteus

Post#11 by Testuser » 21 Oct 2021, 17:32

Hi Beny,

thanks much for the reply.

https://github.com/moby/moby/blob/maste ... -config.sh

check this script for docker config check and found couple of cgroup parameters are missing. I think i need it in kernel conrfig.

I think i had to somehow enable in kernel config.

Then only it will work.
:( :(

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

Run Docker in Porteus

Post#12 by beny » 21 Oct 2021, 17:55

hi i have think the same and now i have the kernel building on, the cgroup i have check all the line and rebuild it,in slackware docker work like a charm in sd system only the iptables nat for me not work..but with dockerd iptables=FALSE work.

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

Run Docker in Porteus

Post#13 by beny » 21 Oct 2021, 19:03

hi this is the log of the 5.15.0-rc6 docker:
guest@porteus:~$ su root
Password:
root@porteus:/home/guest# sh '/etc/rc.d/rc.docker' start
Starting dockerd ...
root@porteus:/home/guest# docker pull openjdk
Using default tag: latest
latest: Pulling from library/openjdk
58c4eaffce77: Pull complete
e6a22c806ee8: Pull complete
e24190594061: Pull complete
Digest: sha256:c841c22e8f9de75a637f9850952ea89a931bdb437af6c2d943ab337cdb299a5e
Status: Downloaded newer image for openjdk:latest
docker.io/library/openjdk:latest
root@porteus:/home/guest#

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

Run Docker in Porteus

Post#14 by Testuser » 30 Oct 2021, 13:30

Hi Beny,

Thanks much for the reply. Really Appreciate it. :beer:

dockerd iptables=FALSE is not working for me. I have firewall configured, i tried disabling that without any help.

Have you made any config changes in the kernel for making docker work in Porteus??

IF yes, please tell me how?

Thanks again.

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

Run Docker in Porteus

Post#15 by beny » 31 Oct 2021, 19:07

hi you have to build a kernel with the cgroup options linked yes, to start docker,or ask blaze to make one that fit this,sorry i have put the kernel build on mediafire but time have expired so is removed from site.
ok upload again: https://www.mediafire.com/folder/0fas1o ... ker-kernel change all the files with the downloaded and start docker let me know if work.

Post Reply