Docker: Difference between revisions

m Rootless docker: Fixed slight error. Linked relevant portion of wiki for enabling services at boot
m Rootless docker: Fixed inaccuracy
Line 41: Line 41:
Docker can now be rootlessly started with:
Docker can now be rootlessly started with:


<syntaxHighlight lang=bash>
<syntaxhighlight lang="bash">
$ systemctl --user enable --now docker
</syntaxhighlight>This creates the 'docker.service' file which is required to start docker. Note that the service will not at start at boot by this command. You will have to set it up in your NixOS configuration. Now the following command will work:<syntaxHighlight lang=bash>
$ systemctl --user start docker
$ systemctl --user start docker
</syntaxHighlight>
</syntaxHighlight>