From 4edeba1d45e9a3c7ebb70c1bbd37fba1c040fb78 Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Wed, 1 Mar 2017 15:05:57 -0800 Subject: [PATCH] Update info about how to check whether Docker is running --- engine/admin/index.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/engine/admin/index.md b/engine/admin/index.md index 48eb7ed146..5a475a0148 100644 --- a/engine/admin/index.md +++ b/engine/admin/index.md @@ -82,20 +82,21 @@ the state of all goroutines and threads within the daemon. ## Ubuntu -As of `14.04`, Ubuntu uses Upstart as a process manager. By default, Upstart -jobs are located in `/etc/init` and the `docker` Upstart job can be found at -`/etc/init/docker.conf`. +Ubuntu 16.04 and newer use `systemd` as the init system. Ubuntu 14.04 uses `upstart`. +Use the appropriate command below to check whether Docker is running: -After successfully [installing Docker for -Ubuntu](../installation/linux/ubuntulinux.md), you can check the running status -using Upstart in this way: +| Init system | Command | +|--------------|-----------------------------| +| `systemd` | `sudo systemctl is-active ` | +| `upstart` | `sudo status docker` | + +You can also use Docker itself to check whether Docker is running: ```bash -$ sudo status docker - -docker start/running, process 989 +$ docker info ``` + ### Running Docker You can start/stop/restart the `docker` daemon using @@ -299,4 +300,4 @@ May 06 00:22:06 localhost.localdomain docker[2495]: time="2015-05-06T00:22:06Z" May 06 00:22:06 localhost.localdomain docker[2495]: time="2015-05-06T00:22:06Z" level="info" msg="-job acceptconnections() = OK (0)" ``` -> Note: Using and configuring journal is an advanced topic and is beyond the scope of this article. \ No newline at end of file +> Note: Using and configuring journal is an advanced topic and is beyond the scope of this article.