You are not logged in.

#1 2024-12-18 08:37:21

Hakim_M
Member
Registered: 2023-04-03
Posts: 3

Run docker daemon during installation

Hello,

I am trying to run the Docker daemon during the installation process, specifically after switching to the new root using arch-chroot /mnt. Since I cannot start the Docker daemon with systemd without a reboot, I attempted to start it manually by running "dockerd &".

However, I encounter errors related to missing processes, and I am unable to run any containers. How can I resolve this issue or properly start the Docker daemon in this environment?

Last edited by Hakim_M (2024-12-18 08:37:37)

Offline

#2 2024-12-18 09:50:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,897

Re: Run docker daemon during installation

You encounter what errors? Pipe them into a file or so, then upload the file: https://wiki.archlinux.org/title/List_o … n_services

What's the actual end goal of this excercise? I'm smelling XY.  No one runs docker daemon to have ran docker daemon, you want which image, for which purpose and why do you think this *has* to done in the chroot and not with e.g. some first boot script or so.

Last edited by V1del (2024-12-18 09:52:57)

Offline

#3 2024-12-19 08:29:54

Hakim_M
Member
Registered: 2023-04-03
Posts: 3

Re: Run docker daemon during installation

I want to explain the following situation:

The main reason is creating a PKGBUILD to package an application that depends on a PostgreSQL database container.
However, during the installation of the package in the chroot environment, the Docker daemon is not running, which causes issues with starting the required container.

What solutions can be proposed for handling this type of application?

Offline

Board footer

Powered by FluxBB