mirror of https://github.com/docker/docs.git
Merge pull request #2041 from docker/2037_upstart
Update info about how to check whether Docker is running
This commit is contained in:
commit
2ad2bc5a63
|
@ -82,20 +82,21 @@ the state of all goroutines and threads within the daemon.
|
||||||
|
|
||||||
## Ubuntu
|
## Ubuntu
|
||||||
|
|
||||||
As of `14.04`, Ubuntu uses Upstart as a process manager. By default, Upstart
|
Ubuntu 16.04 and newer use `systemd` as the init system. Ubuntu 14.04 uses `upstart`.
|
||||||
jobs are located in `/etc/init` and the `docker` Upstart job can be found at
|
Use the appropriate command below to check whether Docker is running:
|
||||||
`/etc/init/docker.conf`.
|
|
||||||
|
|
||||||
After successfully [installing Docker for
|
| Init system | Command |
|
||||||
Ubuntu](../installation/linux/ubuntulinux.md), you can check the running status
|
|--------------|-----------------------------|
|
||||||
using Upstart in this way:
|
| `systemd` | `sudo systemctl is-active ` |
|
||||||
|
| `upstart` | `sudo status docker` |
|
||||||
|
|
||||||
|
You can also use Docker itself to check whether Docker is running:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo status docker
|
$ docker info
|
||||||
|
|
||||||
docker start/running, process 989
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Running Docker
|
### Running Docker
|
||||||
|
|
||||||
You can start/stop/restart the `docker` daemon using
|
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)"
|
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.
|
> Note: Using and configuring journal is an advanced topic and is beyond the scope of this article.
|
||||||
|
|
Loading…
Reference in New Issue