Closed Lobz closed 6 months ago
$ sudo service docker start Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
Erro do docker no journalctl:
Feb 15 17:20:39 Ecologia systemd[1]: Failed to start 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 15629 and the job result is failed.
Feb 15 17:20:39 Ecologia systemd[1]: docker.socket: Failed with result 'service-start-limit-hit'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit docker.socket has entered the 'failed' state with result 'service-start-limit-hit'.
Procurei o problema na intternet e encontrei sugestões de rebootar o servidor (https://stackoverflow.com/questions/59752840/docker-socket-failed-with-result-service-start-limit-hit-after-protecting-doc). Seguindo a sugestão de um dos comentários, tambpem conferi o status:
$ systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2024-02-15 17:20:39 UTC; 8min ago
Docs: https://docs.docker.com
Process: 22725 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 22725 (code=exited, status=1/FAILURE)
$ /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
unable to configure the Docker daemon with file /etc/docker/daemon.json: invalid character ',' after top-level value
O arquivo de configuração .json contém o seguinte:
{
"debug":true
},
{
"log-level":"debug"
},
{
"live-restore":true
}
Corrigi o arquivo de configuração e consegui reiniciar o serviço. Novo arquivo de configuração:
{
"debug":true,
"log-level":"debug",
"live-restore":true
}
Serviço no ar
Reportado para mim hoje (dia 15). Erro no browser: 503. Erro no docker ps: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?