mirror of https://github.com/docker/docs.git
Fixing some formatting snafus
This commit is contained in:
parent
2f472446a1
commit
0884ef36a5
|
@ -30,6 +30,7 @@ makes the ownership of the Unix socket read/writable by the `docker` group.
|
|||
To create the `docker` group and add your user:
|
||||
|
||||
1. Create the `docker` group.
|
||||
|
||||
```bash
|
||||
$ sudo groupadd docker
|
||||
```
|
||||
|
@ -111,7 +112,6 @@ Cannot connect to the Docker daemon. Is 'docker daemon' running on this host?
|
|||
To see which host your client is configured to connect to, check the value of
|
||||
the `DOCKER_HOST` variable in your environment.
|
||||
|
||||
|
||||
```bash
|
||||
$ env | grep DOCKER_HOST
|
||||
```
|
||||
|
@ -121,7 +121,6 @@ Docker daemon running on that host. If it is unset, the Docker client is set to
|
|||
connect to the Docker daemon running on the local host. If it is set in error,
|
||||
use the following command to unset it:
|
||||
|
||||
|
||||
```bash
|
||||
$ unset DOCKER_HOST
|
||||
```
|
||||
|
@ -214,6 +213,7 @@ at `/etc/docker/daemon.json`.
|
|||
|
||||
2. Add a `dns` key with one or more IP addresses as values. If the file has
|
||||
existing contents, you only need to add or edit the `dns` line.
|
||||
|
||||
```json
|
||||
{
|
||||
"dns": ["8.8.8.8", "8.8.4.4"]
|
||||
|
@ -314,7 +314,7 @@ hosts, to prevent remote privilege-escalation attacks.
|
|||
|
||||
To configure UFW and allow incoming connections on the Docker port:
|
||||
|
||||
1. Verify that UFW is enabled.
|
||||
1. Verify that UFW is enabled.
|
||||
|
||||
```bash
|
||||
$ sudo ufw status
|
||||
|
@ -323,7 +323,7 @@ To configure UFW and allow incoming connections on the Docker port:
|
|||
If `ufw` is not enabled, the remaining steps will not be helpful.
|
||||
|
||||
2. Edit the UFW configuration file, which is usually `/etc/default/ufw` or
|
||||
`/etc/sysconfig/ufw`. Set the `DEFAULT_FORWARD_POLICY` policy to `ACCEPT`.
|
||||
`/etc/sysconfig/ufw`. Set the `DEFAULT_FORWARD_POLICY` policy to `ACCEPT`.
|
||||
|
||||
```none
|
||||
DEFAULT_FORWARD_POLICY="ACCEPT"
|
||||
|
@ -341,6 +341,7 @@ To configure UFW and allow incoming connections on the Docker port:
|
|||
```
|
||||
|
||||
4. Reload UFW.
|
||||
|
||||
```bash
|
||||
$ sudo ufw reload
|
||||
```
|
||||
|
@ -377,8 +378,8 @@ memory and a 10% overall performance degradation, even if Docker is not running.
|
|||
$ sudo update-grub
|
||||
```
|
||||
|
||||
If your GRUB configuration file has incorrect syntax, an error will occur.
|
||||
In this case, steps 3 and 4.
|
||||
If your GRUB configuration file has incorrect syntax, an error will occur.
|
||||
In this case, steps 3 and 4.
|
||||
|
||||
6. Reboot your system. Memory and swap accounting are enabled and the warning
|
||||
does not occur.
|
||||
|
|
Loading…
Reference in New Issue