Jump to content

Docker Tutorial: Difference between revisions

Add note about error when starting the docker service.
mNo edit summary
(Add note about error when starting the docker service.)
Line 378: Line 378:
<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
ExecStart=/usr/bin/dockerd -g <another directory>/docker -H fd:// --containerd=/run/containerd/containerd.sock
ExecStart=/usr/bin/dockerd -g <another directory>/docker -H fd:// --containerd=/run/containerd/containerd.sock
</syntaxhighlight>
'''Note''': If you get the error "Job for docker.service failed because the control process exited with error code." when starting the docker service, modify <code>/lib/systemd/system/docker.service</code> with the following instead:
<syntaxhighlight lang=bash>
ExecStart=/usr/bin/dockerd --data-root <another directory>/docker -H fd:// --containerd=/run/containerd/containerd.sock
</syntaxhighlight>
</syntaxhighlight>


40

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.