mirror of https://github.com/docker/docs.git
Update info about how to check whether Docker is running
This commit is contained in:
parent
fc343a81fc
commit
4edeba1d45
|
@ -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.
|
||||
> Note: Using and configuring journal is an advanced topic and is beyond the scope of this article.
|
||||
|
|
Loading…
Reference in New Issue