Merge pull request #2041 from docker/2037_upstart

Update info about how to check whether Docker is running
This commit is contained in:
Misty Stanley-Jones 2017-03-01 15:07:48 -08:00 committed by GitHub
commit 2ad2bc5a63
1 changed files with 11 additions and 10 deletions

View File

@ -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