mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #21572 from konstruktoid/systemd_doc
systemctl show, no need to sudo
This commit is contained in:
commit
f4b915ad7d
1 changed files with 5 additions and 5 deletions
|
@ -56,14 +56,14 @@ directory including the following:
|
||||||
|
|
||||||
To check if the `docker.service` uses an `EnvironmentFile`:
|
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)
|
EnvironmentFile=-/etc/sysconfig/docker (ignore_errors=yes)
|
||||||
|
|
||||||
Alternatively, find out where the service file is located:
|
Alternatively, find out where the service file is located:
|
||||||
|
|
||||||
$ sudo systemctl status docker | grep Loaded
|
$ systemctl show --property=FragmentPath docker
|
||||||
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled)
|
FragmentPath=/usr/lib/systemd/system/docker.service
|
||||||
$ sudo grep EnvironmentFile /usr/lib/systemd/system/docker.service
|
$ grep EnvironmentFile /usr/lib/systemd/system/docker.service
|
||||||
EnvironmentFile=-/etc/sysconfig/docker
|
EnvironmentFile=-/etc/sysconfig/docker
|
||||||
|
|
||||||
You can customize the Docker daemon options using override files as explained in the
|
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:
|
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/
|
Environment=HTTP_PROXY=http://proxy.example.com:80/
|
||||||
|
|
||||||
Restart Docker:
|
Restart Docker:
|
||||||
|
|
Loading…
Reference in a new issue