Skip to content

Commit e3a3145

Browse files
author
Misty Stanley-Jones
committed
Sync vnext-engine branch to docker/docker SHA 2f12d28
This branch will contain forward-looking Engine-specific docs and be the equivalent of docker/docker master for docs
1 parent 0658ba7 commit e3a3145

File tree

111 files changed

+1138
-647
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1138
-647
lines changed

engine/admin/ambassador_pattern_linking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,4 @@ case `192.168.1.52:6379`.
150150
apk add socat && \
151151
rm -r /var/cache/
152152

153-
CMD env | grep _TCP= | (sed 's/.*_PORT_\([0-9]*\)_TCP=tcp:\/\/\(.*\):\(.*\)/socat -t 100000000 TCP4-LISTEN:\1,fork,reuseaddr TCP4:\2:\3 \&/' && echo wait) | sh
153+
CMD env | grep _TCP= | (sed 's/.*_PORT_\([0-9]*\)_TCP=tcp:\/\/\(.*\):\(.*\)/socat -t 100000000 TCP4-LISTEN:\1,fork,reuseaddr TCP4:\2:\3 \&/' && echo wait) | sh

engine/admin/b2d_volume_resize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ VirtualBox.
158158

159159
<img src="/articles/b2d_volume_images/verify.png">
160160

161-
You're done!
161+
You're done!

engine/admin/chef.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ docker_container 'my_nginx' do
6767
env 'FOO=bar'
6868
subscribes :redeploy, 'docker_image[nginx]'
6969
end
70-
```
70+
```

engine/admin/dsc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,4 @@ container:
166166
```powershell
167167
$containerProps = @{Name="web"; Image="node:latest"; Port="80:80"; `
168168
Env="PORT=80"; Link="db:db"; Command="grunt"}
169-
```
169+
```

engine/admin/formatting.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ list of elements they support in their templates:
1313
- [Docker Log Tag formatting](logging/log_tags.md)
1414
- [Docker Network Inspect formatting](../reference/commandline/network_inspect.md)
1515
- [Docker PS formatting](../reference/commandline/ps.md#formatting)
16+
- [Docker Stats formatting](../reference/commandline/stats.md#formatting)
1617
- [Docker Volume Inspect formatting](../reference/commandline/volume_inspect.md)
1718
- [Docker Version formatting](../reference/commandline/version.md#examples)
1819

@@ -26,46 +27,36 @@ This is the complete list of the available functions with examples:
2627
Join concatenates a list of strings to create a single string.
2728
It puts a separator between each element in the list.
2829

29-
{% raw %}
3030
$ docker ps --format '{{join .Names " or "}}'
31-
{% endraw %}
3231

3332
### Json
3433

3534
Json encodes an element as a json string.
3635

37-
{% raw %}
3836
$ docker inspect --format '{{json .Mounts}}' container
39-
{% endraw %}
4037

4138
### Lower
4239

4340
Lower turns a string into its lower case representation.
4441

45-
{% raw %}
4642
$ docker inspect --format "{{lower .Name}}" container
47-
{% endraw %}
4843

4944
### Split
5045

5146
Split slices a string into a list of strings separated by a separator.
5247

5348
{% raw %}
54-
$ docker inspect --format '{{split (join .Names "/") "/"}}' container
55-
{% endraw %}
49+
# docker inspect --format '{{split (join .Names "/") "/"}}' container
50+
{% endraw %}
5651

5752
### Title
5853

5954
Title capitalizes a string.
6055

61-
{% raw %}
6256
$ docker inspect --format "{{title .Name}}" container
63-
{% endraw %}
6457

6558
### Upper
6659

67-
Upper turns a string into its upper case representation.
60+
Upper turms a string into its upper case representation.
6861

69-
{% raw %}
7062
$ docker inspect --format "{{upper .Name}}" container
71-
{% endraw %}

engine/admin/logging/awslogs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ and `logs:PutLogEvents` actions, as shown in the following example.
8282
"Resource": "*"
8383
}
8484
]
85-
}
85+
}

engine/admin/logging/etwlogs.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
description: Describes how to use the etwlogs logging driver.
33
keywords: ETW, docker, logging, driver
4-
title: ETW logging driver
5-
---
64

75
The ETW logging driver forwards container logs as ETW events.
86
ETW stands for Event Tracing in Windows, and is the common framework
@@ -58,4 +56,4 @@ context information. Note that the time stamp is also available within the ETW e
5856

5957
**Note** This ETW provider emits only a message string, and not a specially
6058
structured ETW event. Therefore, it is not required to register a manifest file
61-
with the system to read and interpret its ETW events.
59+
with the system to read and interpret its ETW events.

engine/admin/logging/fluentd.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ The `docker logs` command is not available for this logging driver.
2828

2929
Some options are supported by specifying `--log-opt` as many times as needed:
3030

31-
{% raw %}
3231
- `fluentd-address`: specify `host:port` to connect `localhost:24224`
3332
- `tag`: specify tag for fluentd message, which interpret some markup, ex `{{.ID}}`, `{{.FullID}}` or `{{.Name}}` `docker.{{.ID}}`
34-
{% endraw %}
3533

3634

3735
Configure the default logging driver by passing the
@@ -109,4 +107,4 @@ aggregate store.
109107

110108
3. Start one or more containers with the `fluentd` logging driver:
111109

112-
$ docker run --log-driver=fluentd your/application
110+
$ docker run --log-driver=fluentd your/application

engine/admin/logging/gcplogs.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ takes precedence over information discovered from the metadata server so a
3434
Docker daemon running in a Google Cloud Project can be overridden to log to a
3535
different Google Cloud Project using `--gcp-project`.
3636

37+
Docker fetches the values for zone, instance name and instance id from Google
38+
Cloud metadata server. Those values can be provided via options if metadata
39+
server is not available. They will not override the values from metadata server.
40+
3741
## gcplogs options
3842

3943
You can use the `--log-opt NAME=VALUE` flag to specify these additional Google
@@ -45,6 +49,9 @@ Cloud Logging driver options:
4549
| `gcp-log-cmd` | optional | Whether to log the command that the container was started with. Defaults to false. |
4650
| `labels` | optional | Comma-separated list of keys of labels, which should be included in message, if these labels are specified for container. |
4751
| `env` | optional | Comma-separated list of keys of environment variables, which should be included in message, if these variables are specified for container. |
52+
| `gcp-meta-zone` | optional | Zone name for the instance. |
53+
| `gcp-meta-name` | optional | Instance name. |
54+
| `gcp-meta-id` | optional | Instance ID. |
4855

4956
If there is collision between `label` and `env` keys, the value of the `env`
5057
takes precedence. Both options add additional fields to the attributes of a
@@ -54,6 +61,8 @@ Below is an example of the logging options required to log to the default
5461
logging destination which is discovered by querying the GCE metadata server.
5562

5663
docker run --log-driver=gcplogs \
64+
--log-opt labels=location \
65+
--log-opt env=TEST \
5766
--log-opt gcp-log-cmd=true \
5867
--env "TEST=false" \
5968
--label location=west \
@@ -62,3 +71,12 @@ logging destination which is discovered by querying the GCE metadata server.
6271
This configuration also directs the driver to include in the payload the label
6372
`location`, the environment variable `ENV`, and the command used to start the
6473
container.
74+
75+
An example of the logging options for running outside of GCE (the daemon must be
76+
configured with GOOGLE_APPLICATION_CREDENTIALS):
77+
78+
docker run --log-driver=gcplogs \
79+
--log-opt gcp-project=test-project
80+
--log-opt gcp-meta-zone=west1 \
81+
--log-opt gcp-meta-name=`hostname` \
82+
your/application

engine/admin/logging/journald.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,5 @@ import systemd.journal
9797
reader = systemd.journal.Reader()
9898
reader.add_match('CONTAINER_NAME=web')
9999

100-
for msg in reader:
101-
print '{CONTAINER_ID_FULL}: {MESSAGE}'.format(**msg)
102-
```
103-
104-
## `journald` configuration
105-
106-
Docker hosts with many containers may produce large amounts of logging data.
107-
By default, `journald` limits the number of messages stored per service per
108-
time-unit.
109-
110-
If your application needs large-scale logging, configure `RateLimitIntervalSec`
111-
and `RateLimitBurst` in the `journald` configuration file. By default,
112-
`systemd` drops messages in excess of 1000 messages per service per 30 seconds.
113-
For more information about configuring `journald`, see the
114-
[`journald` documentation](https://www.freedesktop.org/software/systemd/man/journald.conf.html).
100+
for msg in reader:
101+
print '{CONTAINER_ID_FULL}: {MESSAGE}'.format(**msg)

0 commit comments

Comments
 (0)