Docker: Difference between revisions
m I documented how to enable rootless docker |
m →Rootless docker: Fixed slight error. Linked relevant portion of wiki for enabling services at boot |
||
| Line 39: | Line 39: | ||
The <code>setSocketVariable</code> option sets the <code>DOCKER_HOST</code> variable to the rootless Docker instance for normal users by default. | The <code>setSocketVariable</code> option sets the <code>DOCKER_HOST</code> variable to the rootless Docker instance for normal users by default. | ||
Docker can now be rootlessly | Docker can now be rootlessly started with: | ||
<syntaxHighlight lang=bash> | <syntaxHighlight lang=bash> | ||
$ systemctl --user | $ systemctl --user start docker | ||
</syntaxHighlight> | </syntaxHighlight> | ||
| Line 50: | Line 50: | ||
$ systemctl --user status docker | $ systemctl --user status docker | ||
</syntaxHighlight> | </syntaxHighlight> | ||
For enabling at boot, see [https://wiki.nixos.org/wiki/Systemd/User_Services this guide] on systemd user services. | |||
=== Changing Docker Daemon's Data Root === | === Changing Docker Daemon's Data Root === | ||