[docker] start nier meer op, na nieuwe install

Pagina: 1
Acties:

Vraag


Acties:
  • 0 Henk 'm!

  • insomniac
  • Registratie: Februari 2006
  • Laatst online: 15-09 17:28
Ik had een werkend systeem met Ubuntu 22.04.2 LTS, docker werkte er op met verschillende containers.
Alleen was de oude ssd waar de containers opstond te klein aan het worden.
Ik heb toen een nieuwe schijf gepakt, netjes een partitie aangemaakt, gemount en alle data van de ssd met containers naar de nieuwe hdd geschreven met
code:
1
sudo rsync -azvv /blabla /blabla2

daarna in fstab de uuid veranderd van het mounting point zodat de /media/containers verwees naar de nieuwe hdd ipv de oude ssd. reboot en het zo ver werkte het.
alleen docker starte niet meer op.
Ik kreeg een code 1.
van alles geprobeerd, maar toch maar gekozen voor het verwijderen van docker en opnieuw installeren.

helaas docker start nog steeds niet op; code 1 faillure

journalctl -xeu docker.service

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
░░ The unit docker.service has entered the 'failed' state with result 'exit-code'.
Jun 13 11:01:01 thebastard systemd[1]: Failed to start Docker Application Container Engine.
░░ Subject: A start job for unit docker.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit docker.service has finished with a failure.
░░
░░ The job identifier is 8940 and the job result is failed.
Jun 13 11:01:03 thebastard systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ Automatic restarting of the unit docker.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Jun 13 11:01:03 thebastard systemd[1]: Stopped Docker Application Container Engine.
░░ Subject: A stop job for unit docker.service has finished
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A stop job for unit docker.service has finished.
░░
░░ The job identifier is 9052 and the job result is done.
Jun 13 11:01:03 thebastard systemd[1]: docker.service: Start request repeated too quickly.
Jun 13 11:01:03 thebastard systemd[1]: docker.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit docker.service has entered the 'failed' state with result 'exit-code'.
Jun 13 11:01:03 thebastard systemd[1]: Failed to start Docker Application Container Engine.
░░ Subject: A start job for unit docker.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit docker.service has finished with a failure.
░░
░░ The job identifier is 9052 and the job result is failed.


ik heb deze methode gevolgd:
https://docs.docker.com/e...tall-using-the-repository

Waar kan het aan liggen?

::. PVOutput: Zuid 4875Wp :: Noord 5406Wp :: Totaal 10281Wp .::

Alle reacties


Acties:
  • 0 Henk 'm!

  • Cyphax
  • Registratie: November 2000
  • Laatst online: 13:33

Cyphax

Moderator LNX
Krijg je toevallig nuttige output van `systemctl status docker.service`?
Wat had je zelf al geprobeerd? (Ik vraag het om te voorkomen dat we dingen voorstellen die je al geprobeerd hebt :))

Saved by the buoyancy of citrus


Acties:
  • 0 Henk 'm!

  • insomniac
  • Registratie: Februari 2006
  • Laatst online: 15-09 17:28
Of het nuttige output is weet ik niet, maar dit geeft "systemctl status docker.service"
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
× docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-06-13 11:23:56 CEST; 5min ago
TriggeredBy: × docker.socket
       Docs: https://docs.docker.com
    Process: 7815 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILUR>
   Main PID: 7815 (code=exited, status=1/FAILURE)
        CPU: 72ms

Jun 13 11:23:56 thebastard systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Jun 13 11:23:56 thebastard systemd[1]: Stopped Docker Application Container Engine.
Jun 13 11:23:56 thebastard systemd[1]: docker.service: Start request repeated too quickly.
Jun 13 11:23:56 thebastard systemd[1]: docker.service: Failed with result 'exit-code'.
Jun 13 11:23:56 thebastard systemd[1]: Failed to start Docker Application Container Engine.


als ik de stappen doorneem van:
https://www.digitalocean....se-docker-on-ubuntu-22-04
dan gaat alles goed tot:
code:
1
sudo apt install docker-ce


dan krijg ik

code:
1
2
3
4
5
6
jeroen@thebastard:~$ sudo apt install docker-ce
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
docker-ce is already the newest version (5:24.0.2-1~ubuntu.22.04~jammy).
0 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.


dus even apt remove docker-ce gedaan en dan opnieuw apt install docker-ce
Daar gaat toch iets niet helemaal goed.

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Setting up docker-ce (5:24.0.2-1~ubuntu.22.04~jammy) ...
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.
invoke-rc.d: initscript docker, action "restart" failed.
● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Tue 2023-06-13 11:37:45 CEST; 4ms ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
    Process: 9364 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
   Main PID: 9364 (code=exited, status=1/FAILURE)
        CPU: 50ms
dpkg: error processing package docker-ce (--configure):
 installed docker-ce package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 docker-ce
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

[ Voor 47% gewijzigd door insomniac op 13-06-2023 11:39 ]

::. PVOutput: Zuid 4875Wp :: Noord 5406Wp :: Totaal 10281Wp .::


Acties:
  • 0 Henk 'm!

  • Cyphax
  • Registratie: November 2000
  • Laatst online: 13:33

Cyphax

Moderator LNX
Daar wordt het niet direct heel veel duidelijker van. :P
Draait containerd wel?
Wat zijn de rechten op docker.sock in /var/run/?

Saved by the buoyancy of citrus


Acties:
  • +1 Henk 'm!

  • insomniac
  • Registratie: Februari 2006
  • Laatst online: 15-09 17:28
het is gelukt, docker draait nu weer. Nu alleen nog zoeken hoe ik het path van de containers kan aanpassen.
edit: alle containers zijn weer up and running

ik heb handmatig de docker en conatinerd directory verwijderd via su priveleges.
Daarna nogmaals apt remove docker-ce en apt install-docker-ce

[ Voor 8% gewijzigd door insomniac op 13-06-2023 13:41 ]

::. PVOutput: Zuid 4875Wp :: Noord 5406Wp :: Totaal 10281Wp .::