From ea1d8d6f82ee76f35b98b6ce2e3c543f24cf4b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Mon, 28 Mar 2016 13:06:12 +0200 Subject: [PATCH] systemctl show, no need to sudo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- docs/admin/systemd.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/admin/systemd.md b/docs/admin/systemd.md index 668a036349..ff1d54607f 100644 --- a/docs/admin/systemd.md +++ b/docs/admin/systemd.md @@ -56,14 +56,14 @@ directory including the following: To check if the `docker.service` uses an `EnvironmentFile`: - $ sudo systemctl show docker | grep EnvironmentFile + $ systemctl show docker | grep EnvironmentFile EnvironmentFile=-/etc/sysconfig/docker (ignore_errors=yes) Alternatively, find out where the service file is located: - $ sudo systemctl status docker | grep Loaded - Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled) - $ sudo grep EnvironmentFile /usr/lib/systemd/system/docker.service + $ systemctl show --property=FragmentPath docker + FragmentPath=/usr/lib/systemd/system/docker.service + $ grep EnvironmentFile /usr/lib/systemd/system/docker.service EnvironmentFile=-/etc/sysconfig/docker You can customize the Docker daemon options using override files as explained in the @@ -143,7 +143,7 @@ Flush changes: Verify that the configuration has been loaded: - $ sudo systemctl show docker --property Environment + $ systemctl show --property=Environment docker Environment=HTTP_PROXY=http://proxy.example.com:80/ Restart Docker: