Raspberry pi4 Docker

User avatar
mario026
Posts: 86
Joined: Mon Jan 11, 2021 9:27 pm
Location: Ostrów wlkp.

Post

Witam!
Proszę o pomoc, padł mi dysk na którym miałem suplę, HA, i kilka innych rzeczy w docker.
Miałem kopię zapasową całego dysku więc wgrałem obraz, ale mam jeden problem nie chce mi wystartować docker.
dostaję takie coś:

Code: Select all

pi@raspberrypi:~ $ sudo systemctl status docker
× docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Thu 2024-08-01 13:45:41 CEST; 33min ago
TriggeredBy: × docker.socket
       Docs: https://docs.docker.com
    Process: 6558 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=2)
   Main PID: 6558 (code=exited, status=2)
        CPU: 1.441s

Aug 01 13:45:41 raspberrypi systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Aug 01 13:45:41 raspberrypi systemd[1]: Stopped docker.service - Docker Application Container Engine.
Aug 01 13:45:41 raspberrypi systemd[1]: docker.service: Consumed 1.441s CPU time.
Aug 01 13:45:41 raspberrypi systemd[1]: docker.service: Start request repeated too quickly.
Aug 01 13:45:41 raspberrypi systemd[1]: docker.service: Failed with result 'exit-code'.
Aug 01 13:45:41 raspberrypi systemd[1]: Failed to start docker.service - Docker Application Container Engine.

Code: Select all

pi@raspberrypi:~ $ sudo systemctl start docker
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.
próbowałem naprawić różnymi sposobami znalezionymi w sieci ale bez powodzenia.
Może ktoś coś doradzi
Wszyscy mają prawo do szczęścia, ale nie wszyscy mają szczęście do prawa :D
robi05
Posts: 30
Joined: Wed Mar 13, 2024 7:47 pm

Post

Witam niestety nie pomogę z malinką jedno co mogę doradzić do dobrym ruchem będzie zakup dysku serwerowego
User avatar
pzygmunt
Posts: 19241
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

Zobacz co pokazuje

Code: Select all

systemctl status docker.service
oraz

Code: Select all

journalctl -xeu docker.service
User avatar
mario026
Posts: 86
Joined: Mon Jan 11, 2021 9:27 pm
Location: Ostrów wlkp.

Post

Sory, że tak późno odpowiadam, ale pracuję na nockach.
Pierwsze polecenie zwraca:

Code: Select all

pi@raspberrypi:~ $ systemctl status docker.service
× docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Fri 2024-08-02 12:37:31 CEST; 7min ago
TriggeredBy: × docker.socket
       Docs: https://docs.docker.com
    Process: 2366 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=2)
   Main PID: 2366 (code=exited, status=2)
        CPU: 3.009s

Aug 02 12:37:31 raspberrypi systemd[1]: docker.service: Scheduled restart job, restart counter is at 4.
Aug 02 12:37:31 raspberrypi systemd[1]: Stopped docker.service - Docker Application Container Engine.
Aug 02 12:37:31 raspberrypi systemd[1]: docker.service: Consumed 3.009s CPU time.
Aug 02 12:37:31 raspberrypi systemd[1]: docker.service: Start request repeated too quickly.
Aug 02 12:37:31 raspberrypi systemd[1]: docker.service: Failed with result 'exit-code'.
Aug 02 12:37:31 raspberrypi systemd[1]: Failed to start docker.service - Docker Application Container Engine.
a drugie:

Code: Select all

pi@raspberrypi:~ $ journalctl -xeu docker.service
░░
░░ The job identifier is 1204 and the job result is done.
Aug 02 12:37:31 raspberrypi systemd[1]: docker.service: Consumed 3.009s CPU time.
░░ Subject: Resources consumed by unit runtime
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit docker.service completed and consumed the indicated resources.
Aug 02 12:37:31 raspberrypi systemd[1]: docker.service: Start request repeated too quickly.
Aug 02 12:37:31 raspberrypi systemd[1]: docker.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit docker.service has entered the 'failed' state with result 'exit-code'.
Aug 02 12:37:31 raspberrypi systemd[1]: Failed to start docker.service - Docker Application Container Engine.
░░ Subject: A start job for unit docker.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit docker.service has finished with a failure.
░░
░░ The job identifier is 1204 and the job result is failed.
Wszyscy mają prawo do szczęścia, ale nie wszyscy mają szczęście do prawa :D
User avatar
pzygmunt
Posts: 19241
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

Usunąłbym dockera i zainstalował ponownie za pomocą apt-get
User avatar
mario026
Posts: 86
Joined: Mon Jan 11, 2021 9:27 pm
Location: Ostrów wlkp.

Post

Komenda ma tak wyglądać?

Code: Select all

sudo apt-get remove docker
Wszyscy mają prawo do szczęścia, ale nie wszyscy mają szczęście do prawa :D
User avatar
pzygmunt
Posts: 19241
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

Sprawdź co jest zainstalowane

Code: Select all

sudo apt list --installed |grep docker 
User avatar
mario026
Posts: 86
Joined: Mon Jan 11, 2021 9:27 pm
Location: Ostrów wlkp.

Post

Code: Select all

pi@raspberrypi:~ $ sudo apt list --installed |grep docker

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

docker-buildx-plugin/bookworm,now 0.16.1-1~raspbian.12~bookworm armhf [installed,automatic]
docker-ce-cli/bookworm,now 5:27.1.1-1~raspbian.12~bookworm armhf [installed]
docker-ce-rootless-extras/bookworm,now 5:27.1.1-1~raspbian.12~bookworm armhf [installed]
docker-ce/bookworm,now 5:27.1.1-1~raspbian.12~bookworm armhf [installed]
docker-compose-plugin/bookworm,now 2.29.1-1~raspbian.12~bookworm armhf [installed]
i teraz kolejno dawać? np

Code: Select all

sudo apt-get remove docker-buildx-plugin 
Wszyscy mają prawo do szczęścia, ale nie wszyscy mają szczęście do prawa :D
User avatar
pzygmunt
Posts: 19241
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków

Post

Myślę, że wystarczy docker-ce
User avatar
mario026
Posts: 86
Joined: Mon Jan 11, 2021 9:27 pm
Location: Ostrów wlkp.

Post

Odinstalowałem docker-ce, reboot maliny później instalacja za pomocą

Code: Select all

curl -sSL https://get.docker.com | sh

Code: Select all

Client: Docker Engine - Community
 Version:           27.1.1
 API version:       1.46
 Go version:        go1.21.12
 Git commit:        6312585
 Built:             Tue Jul 23 19:57:27 2024
 OS/Arch:           linux/arm
 Context:           default
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

================================================================================

To run Docker as a non-privileged user, consider setting up the
Docker daemon in rootless mode for your user:

    dockerd-rootless-setuptool.sh install

Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.


To run the Docker daemon as a fully privileged service, but granting non-root
users access, refer to https://docs.docker.com/go/daemon-access/

WARNING: Access to the remote API on a privileged Docker daemon is equivalent
         to root access on the host. Refer to the 'Docker daemon attack surface'
         documentation for details: https://docs.docker.com/go/attack-surface/

================================================================================
reboot maliny i nadal dostaję takie coś:

Code: Select all

pi@raspberrypi:~ $ systemctl status docker.service
lines 1--1...skipping...
× docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Fri 2024-08-02 13:58:26 CEST; 5min ago
TriggeredBy: × docker.socket
       Docs: https://docs.docker.com
    Process: 1914 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=2)
   Main PID: 1914 (code=exited, status=2)
        CPU: 3.475s

Aug 02 13:58:24 raspberrypi systemd[1]: docker.service: Consumed 3.475s CPU time.
Aug 02 13:58:26 raspberrypi systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Aug 02 13:58:26 raspberrypi systemd[1]: Stopped docker.service - Docker Application Container Engine.
Aug 02 13:58:26 raspberrypi systemd[1]: docker.service: Consumed 3.475s CPU time.
Aug 02 13:58:26 raspberrypi systemd[1]: docker.service: Start request repeated too quickly.
Aug 02 13:58:26 raspberrypi systemd[1]: docker.service: Failed with result 'exit-code'.
Aug 02 13:58:26 raspberrypi systemd[1]: Failed to start docker.service - Docker Application Container Engine.
Wszyscy mają prawo do szczęścia, ale nie wszyscy mają szczęście do prawa :D

Return to “Pomoc”