Closed Arelius-D closed 1 month ago
This repository contains the source for the docker
Docker Official Image, https://hub.docker.com/_/docker, and is not a general resource for running the Docker daemon.
You can ask for help in the Docker Community Slack. If you are not already a member of the Docker Community Slack, you can use this link to join. You can find more support options at Docker Support.
Regarding this specific issue, I would pay particular attention to this section of the documentation you link to:
Configuring Docker to listen for connections using both the systemd unit file and the daemon.json file causes a conflict that prevents Docker from starting.
It looks like you are doing both and therefore would be seeing the "conflict that prevents Docker from starting."
As soon as I put these lines
in
/etc/docker/daemon.json
(which I had to create runningsudo touch /etc/docker/daemon.json
) Docker refuses to restart withsudo service docker restart
(regardless ifsudo systemctl daemon-reload
was executed or not)The output I'm getting when trying to restart Docker service is:
Output from
systemctl status docker.service
:and from
journalctl -xeu docker.service
Some clarification: I wanted to setup Docker API properly (to avoid granting direct access to the docker.sock) and this time around, I tried to be causes. (Things went wrong when I was careless).
My sources of information has been Official doc combined with articles link, link for the modification of ´docker.service´. I think trying to compile 3 sources ultimately created some confusion for my novice brain which perhaps have lead me into this very outcome/situation.
sudo cat /lib/systemd/system/docker.service
I have tried to redo the steps but the outcome remains the same. So I'm in way over my head and here now, I can't tell if this is a bug with Docker or some other kind of issue, eg user error, problem with permissions etc.. so please advise!