diff --git a/docs/admin/systemd.md b/docs/admin/systemd.md index ff1d54607f..ef44e8e9ee 100644 --- a/docs/admin/systemd.md +++ b/docs/admin/systemd.md @@ -33,15 +33,19 @@ If you want Docker to start at boot, you should also: There are a number of ways to configure the daemon flags and environment variables for your Docker daemon. -The recommended way is to use a systemd drop-in file. These are local files in -the `/etc/systemd/system/docker.service.d` directory. This could also be -`/etc/systemd/system/docker.service`, which also works for overriding the -defaults from `/lib/systemd/system/docker.service`. +The recommended way is to use a systemd drop-in file (as described in +the systemd.unit +documentation). These are local files named `.conf` in the +`/etc/systemd/system/docker.service.d` directory. This could also be +`/etc/systemd/system/docker.service`, which also works for overriding +the defaults from `/lib/systemd/system/docker.service`. -However, if you had previously used a package which had an `EnvironmentFile` -(often pointing to `/etc/sysconfig/docker`) then for backwards compatibility, -you drop a file in the `/etc/systemd/system/docker.service.d` -directory including the following: +However, if you had previously used a package which had an +`EnvironmentFile` (often pointing to `/etc/sysconfig/docker`) then for +backwards compatibility, you drop a file with a `.conf` extension into +the `/etc/systemd/system/docker.service.d` directory including the +following: [Service] EnvironmentFile=-/etc/sysconfig/docker