Will be fixed with next release

To me it still does not work by doing in this way with a fresh new installation of DietPi. Even if I give "systemctl daemon-reload" and then "service docker start" or in the opposite order.mspieth wrote: ↑Tue Nov 13, 2018 12:49 pm Until the bug is fixed within dietpi, it's easy to fix on your own.
1. Install docker #162 normally via dietpi-software.
2. At the end of the install, docker will fail to start, thats ok for now.
3. nano /lib/systemd/system/docker.service
4. Find the line that says: ExecStart=/usr/bin/dockerd -g /mnt/dietpi_userdata/docker-data -H fd://
5. Either delete that line or comment it out by adding a # in front of the line.
6. Add the following line just below the original line: ExecStart=/usr/bin/dockerd -g /mnt/dietpi_userdata/docker-data -H unix://
7. Save the file
8. service docker start
That's it.
You could also just edit the above mentioned file and replace the fd:// with unix://
Code: Select all
root@dietpi:~# docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
root@dietpi:~#
Code: Select all
...
[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart=/usr/bin/dockerd -g /mnt/dietpi_userdata/docker-data -H unix://
ExecReload=/bin/kill -s HUP $MAINPID
TimeoutSec=0
RestartSec=2
Restart=always
...
@MichaIng Yes, I had already done that as I wrote in my previous message but I did it again now after rebooting the raspberry pi. Still Docker does not work.
Code: Select all
root@router:~# nano /lib/systemd/system/docker.service
root@router:~# systemctl daemon-reload
root@router:~# systemctl restart docker
Job for docker.service canceled.
root@router:~# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: enabled)
Active: failed (Result: core-dump) since Sun 2018-11-18 20:48:51 CET; 6s ago
Docs: https://docs.docker.com
Process: 9258 ExecStart=/usr/bin/dockerd -g /mnt/dietpi_userdata/docker-data -H unix:// (code=dumped, signal=SEGV)
Main PID: 9258 (code=dumped, signal=SEGV)
CPU: 625ms
Nov 18 20:48:48 router systemd[1]: Starting Docker Application Container Engine...
Nov 18 20:48:51 router systemd[1]: docker.service: Main process exited, code=dumped, status=11/SEGV
Nov 18 20:48:51 router systemd[1]: Stopped Docker Application Container Engine.
Nov 18 20:48:51 router systemd[1]: docker.service: Unit entered failed state.
Nov 18 20:48:51 router systemd[1]: docker.service: Failed with result 'core-dump'.
root@router:~#
Okay so there is anther issue then. Please check docker logs for more details.docker.service: Main process exited, code=dumped, status=11/SEGV
So under systemd the command to run is:
Code: Select all
journalctl -fu docker.service
Code: Select all
root@pi-hole:~# journalctl -fu docker.service
-- Logs begin at Thu 2016-11-03 17:16:44 GMT. --
Nov 23 22:20:08 pi-hole systemd[1]: Starting Docker Application Container Engine...
Nov 23 22:20:12 pi-hole systemd[1]: docker.service: Main process exited, code=dumped, status=11/SEGV
Nov 23 22:20:12 pi-hole systemd[1]: Stopped Docker Application Container Engine.
Nov 23 22:20:12 pi-hole systemd[1]: docker.service: Unit entered failed state.
Nov 23 22:20:12 pi-hole systemd[1]: docker.service: Failed with result 'core-dump'.
Nov 23 22:20:27 pi-hole systemd[1]: Starting Docker Application Container Engine...
Nov 23 22:20:31 pi-hole systemd[1]: docker.service: Main process exited, code=dumped, status=11/SEGV
Nov 23 22:20:31 pi-hole systemd[1]: Stopped Docker Application Container Engine.
Nov 23 22:20:31 pi-hole systemd[1]: docker.service: Unit entered failed state.
Nov 23 22:20:31 pi-hole systemd[1]: docker.service: Failed with result 'core-dump'.
Code: Select all
sed -i 's|fd://|unix://|' /lib/systemd/system/docker.service
systemctl daemon-reload
systemctl restart docker
Yup.
Code: Select all
root@pi-hole:~# cat /lib/systemd/system/docker.service | grep ExecStart
ExecStart=/usr/bin/dockerd -g /mnt/dietpi_userdata/docker-data -H unix://
@MichaIng it has already been mentioned several times that what you wrote was tried.MichaIng wrote: ↑Sat Nov 24, 2018 10:37 pm Did you do the systemd unit change as mentioned above:Code: Select all
sed -i 's|fd://|unix://|' /lib/systemd/system/docker.service systemctl daemon-reload systemctl restart docker