Skip to content

Commit 5d29b79

Browse files
authored
Merge pull request moby#25780 from thaJeztah/1.12.1-docs-cherry-picks
1.12.1 docs cherry picks
2 parents 6e7b8f4 + c745f4d commit 5d29b79

35 files changed

+1207
-623
lines changed

docs/installation/linux/cruxlinux.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ parent = "engine_linux"
1111

1212
# CRUX Linux
1313

14-
Installing on CRUX Linux can be handled via the contrib ports from
15-
[James Mills](http://prologic.shortcircuit.net.au/) and are included in the
14+
Installing on CRUX Linux can be done using the
1615
official [contrib](http://crux.nu/portdb/?a=repo&q=contrib) ports:
1716

1817
- docker
@@ -57,9 +56,9 @@ To start on system boot:
5756

5857
## Images
5958

60-
There is a CRUX image maintained by [James Mills](http://prologic.shortcircuit.net.au/)
61-
as part of the Docker "Official Library" of images. To use this image simply pull it
62-
or use it as part of your `FROM` line in your `Dockerfile(s)`.
59+
There is a CRUX image as part of the Docker "Official Library" of images.
60+
To use this image simply pull it or use it as part of your `FROM` line in
61+
your `Dockerfile(s)`.
6362

6463
$ docker pull crux
6564
$ docker run -i -t crux

docs/installation/linux/ubuntulinux.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,25 +119,23 @@ packages from the new repository:
119119
- Ubuntu Trusty 14.04 (LTS)
120120

121121
For Ubuntu Trusty, Wily, and Xenial, it's recommended to install the
122-
`linux-image-extra` kernel package. The `linux-image-extra` package
122+
`linux-image-extra-*` kernel packages. The `linux-image-extra-*` packages
123123
allows you use the `aufs` storage driver.
124124

125-
To install the `linux-image-extra` package for your kernel version:
125+
To install the `linux-image-extra-*` packages:
126126

127127
1. Open a terminal on your Ubuntu host.
128128

129129
2. Update your package manager.
130130

131131
$ sudo apt-get update
132132

133-
3. Install the recommended package.
133+
3. Install the recommended packages.
134134

135-
$ sudo apt-get install linux-image-extra-$(uname -r)
135+
$ sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
136136

137137
4. Go ahead and install Docker.
138138

139-
If you are installing on Ubuntu 14.04 or 12.04, `apparmor` is required. You can install it using: `apt-get install apparmor`
140-
141139
#### Ubuntu Precise 12.04 (LTS)
142140

143141
For Ubuntu Precise, Docker requires the 3.13 kernel version. If your kernel

docs/reference/api/docker_remote_api_v1.21.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ Create a container
200200
"RestartPolicy": { "Name": "", "MaximumRetryCount": 0 },
201201
"NetworkMode": "bridge",
202202
"Devices": [],
203-
"Sysctls": { "net.ipv4.ip_forward": "1" },
204203
"Ulimits": [{}],
205204
"LogConfig": { "Type": "json-file", "Config": {} },
206205
"SecurityOpt": [],

docs/reference/api/docker_remote_api_v1.24.md

Lines changed: 83 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ Create a container
327327
"RestartPolicy": { "Name": "", "MaximumRetryCount": 0 },
328328
"NetworkMode": "bridge",
329329
"Devices": [],
330+
"Sysctls": { "net.ipv4.ip_forward": "1" },
330331
"Ulimits": [{}],
331332
"LogConfig": { "Type": "json-file", "Config": {} },
332333
"SecurityOpt": [],
@@ -4084,6 +4085,54 @@ JSON Parameters:
40844085
40854086
## 3.8 Swarm
40864087
4088+
### Inspect swarm
4089+
4090+
4091+
`GET /swarm`
4092+
4093+
Inspect swarm
4094+
4095+
**Example response**:
4096+
4097+
HTTP/1.1 200 OK
4098+
Content-Type: application/json
4099+
4100+
{
4101+
"CreatedAt" : "2016-08-15T16:00:20.349727406Z",
4102+
"Spec" : {
4103+
"Dispatcher" : {
4104+
"HeartbeatPeriod" : 5000000000
4105+
},
4106+
"Orchestration" : {
4107+
"TaskHistoryRetentionLimit" : 10
4108+
},
4109+
"CAConfig" : {
4110+
"NodeCertExpiry" : 7776000000000000
4111+
},
4112+
"Raft" : {
4113+
"LogEntriesForSlowFollowers" : 500,
4114+
"HeartbeatTick" : 1,
4115+
"SnapshotInterval" : 10000,
4116+
"ElectionTick" : 3
4117+
},
4118+
"TaskDefaults" : {},
4119+
"Name" : "default"
4120+
},
4121+
"JoinTokens" : {
4122+
"Worker" : "SWMTKN-1-1h8aps2yszaiqmz2l3oc5392pgk8e49qhx2aj3nyv0ui0hez2a-6qmn92w6bu3jdvnglku58u11a",
4123+
"Manager" : "SWMTKN-1-1h8aps2yszaiqmz2l3oc5392pgk8e49qhx2aj3nyv0ui0hez2a-8llk83c4wm9lwioey2s316r9l"
4124+
},
4125+
"ID" : "70ilmkj2f6sp2137c753w2nmt",
4126+
"UpdatedAt" : "2016-08-15T16:32:09.623207604Z",
4127+
"Version" : {
4128+
"Index" : 51
4129+
}
4130+
}
4131+
4132+
**Status codes**:
4133+
4134+
- **200** - no error
4135+
40874136
### Initialize a new swarm
40884137
40894138
@@ -4403,7 +4452,10 @@ List services
44034452
44044453
`POST /services/create`
44054454
4406-
Create a service
4455+
Create a service. When using this endpoint to create a service using a private
4456+
repository from the registry, the `X-Registry-Auth` header must be used to
4457+
include a base64-encoded AuthConfig object. Refer to the [create an
4458+
image](#create-an-image) section for more details.
44074459
44084460
**Example request**:
44094461
@@ -4483,7 +4535,7 @@ Create a service
44834535
Content-Type: application/json
44844536
44854537
{
4486-
"Id":"ak7w3gjqoa3kuz8xcpnyy0pvl"
4538+
"ID":"ak7w3gjqoa3kuz8xcpnyy0pvl"
44874539
}
44884540
44894541
**Status codes**:
@@ -4494,10 +4546,8 @@ Create a service
44944546
44954547
JSON Parameters:
44964548
4497-
- **Annotations** – Optional medata to associate with the service.
4498-
- **Name** – User-defined name for the service.
4499-
- **Labels** – A map of labels to associate with the service (e.g.,
4500-
`{"key":"value"[,"key2":"value2"]}`).
4549+
- **Name** – User-defined name for the service.
4550+
- **Labels** – A map of labels to associate with the service (e.g., `{"key":"value"[,"key2":"value2"]}`).
45014551
- **TaskTemplate** – Specification of the tasks to start as part of the new service.
45024552
- **ContainerSpec** - Container settings for containers started as part of this task.
45034553
- **Image** – A string specifying the image name to use for the container.
@@ -4563,6 +4613,14 @@ JSON Parameters:
45634613
of: `"Ports": { "<port>/<tcp|udp>: {}" }`
45644614
- **VirtualIPs**
45654615
4616+
**Request Headers**:
4617+
4618+
- **Content-type** – Set to `"application/json"`.
4619+
- **X-Registry-Auth** – base64-encoded AuthConfig object, containing either
4620+
login information, or a token. Refer to the [create an image](#create-an-image)
4621+
section for more details.
4622+
4623+
45664624
### Remove a service
45674625
45684626
@@ -4576,11 +4634,11 @@ Stop and remove the service `id`
45764634
45774635
**Example response**:
45784636
4579-
HTTP/1.1 204 No Content
4637+
HTTP/1.1 200 No Content
45804638
45814639
**Status codes**:
45824640
4583-
- **204** – no error
4641+
- **200** – no error
45844642
- **404** – no such service
45854643
- **500** – server error
45864644
@@ -4667,11 +4725,16 @@ Return information on the service `id`.
46674725
46684726
`POST /services/(id or name)/update`
46694727
4670-
Update the service `id`.
4728+
Update a service. When using this endpoint to create a service using a
4729+
private repository from the registry, the `X-Registry-Auth` header can be used
4730+
to update the authentication information for that is stored for the service.
4731+
The header contains a base64-encoded AuthConfig object. Refer to the [create an
4732+
image](#create-an-image) section for more details.
46714733
46724734
**Example request**:
46734735
4674-
POST /services/1cb4dnqcyx6m66g2t538x3rxha/update HTTP/1.1
4736+
POST /services/1cb4dnqcyx6m66g2t538x3rxha/update?version=23 HTTP/1.1
4737+
Content-Type: application/json
46754738
46764739
{
46774740
"Name": "top",
@@ -4713,10 +4776,8 @@ Update the service `id`.
47134776
47144777
**JSON Parameters**:
47154778
4716-
- **Annotations** – Optional medata to associate with the service.
4717-
- **Name** – User-defined name for the service.
4718-
- **Labels** – A map of labels to associate with the service (e.g.,
4719-
`{"key":"value"[,"key2":"value2"]}`).
4779+
- **Name** – User-defined name for the service.
4780+
- **Labels** – A map of labels to associate with the service (e.g., `{"key":"value"[,"key2":"value2"]}`).
47204781
- **TaskTemplate** – Specification of the tasks to start as part of the new service.
47214782
- **ContainerSpec** - Container settings for containers started as part of this task.
47224783
- **Image** – A string specifying the image name to use for the container.
@@ -4780,12 +4841,19 @@ Update the service `id`.
47804841
- **version** – The version number of the service object being updated. This is
47814842
required to avoid conflicting writes.
47824843
4844+
**Request Headers**:
4845+
4846+
- **Content-type** – Set to `"application/json"`.
4847+
- **X-Registry-Auth** – base64-encoded AuthConfig object, containing either
4848+
login information, or a token. Refer to the [create an image](#create-an-image)
4849+
section for more details.
4850+
47834851
**Status codes**:
47844852
47854853
- **200** – no error
47864854
- **404** – no such service
47874855
- **500** – server error
4788-
4856+
47894857
## 3.10 Tasks
47904858
47914859
**Note**: Task operations require the engine to be part of a swarm.

docs/reference/commandline/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ read the [`dockerd`](dockerd.md) reference page.
3939
|:--------|:-------------------------------------------------------------------|
4040
| [build](build.md) | Build an image from a Dockerfile |
4141
| [commit](commit.md) | Create a new image from a container's changes |
42-
| [export](export.md) | Export a container's filesystem as a tar archive |
4342
| [history](history.md) | Show the history of an image |
4443
| [images](images.md) | List images |
4544
| [import](import.md) | Import the contents from a tarball to create a filesystem image |
@@ -58,6 +57,7 @@ read the [`dockerd`](dockerd.md) reference page.
5857
| [diff](diff.md) | Inspect changes on a container's filesystem |
5958
| [events](events.md) | Get real time events from the server |
6059
| [exec](exec.md) | Run a command in a running container |
60+
| [export](export.md) | Export a container's filesystem as a tar archive |
6161
| [kill](kill.md) | Kill a running container |
6262
| [logs](logs.md) | Fetch the logs of a container |
6363
| [pause](pause.md) | Pause all processes within a container |

docs/reference/commandline/network_connect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,5 @@ You can connect a container to one or more networks. The networks need not be th
9393
* [network disconnect](network_disconnect.md)
9494
* [network ls](network_ls.md)
9595
* [network rm](network_rm.md)
96-
* [Understand Docker container networks](../../userguide/networking/dockernetworks.md)
96+
* [Understand Docker container networks](../../userguide/networking/index.md)
9797
* [Work with networks](../../userguide/networking/work-with-networks.md)

docs/reference/commandline/network_create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,4 @@ to create an externally isolated `overlay` network, you can specify the
192192
* [network disconnect](network_disconnect.md)
193193
* [network ls](network_ls.md)
194194
* [network rm](network_rm.md)
195-
* [Understand Docker container networks](../../userguide/networking/dockernetworks.md)
195+
* [Understand Docker container networks](../../userguide/networking/index.md)

docs/reference/commandline/network_disconnect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ Disconnects a container from a network. The container must be running to disconn
3434
* [network create](network_create.md)
3535
* [network ls](network_ls.md)
3636
* [network rm](network_rm.md)
37-
* [Understand Docker container networks](../../userguide/networking/dockernetworks.md)
37+
* [Understand Docker container networks](../../userguide/networking/index.md)

docs/reference/commandline/network_inspect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ $ docker network inspect simple-network
119119
* [network create](network_create.md)
120120
* [network ls](network_ls.md)
121121
* [network rm](network_rm.md)
122-
* [Understand Docker container networks](../../userguide/networking/dockernetworks.md)
122+
* [Understand Docker container networks](../../userguide/networking/index.md)

docs/reference/commandline/network_ls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,4 @@ attached.
176176
* [network create](network_create.md)
177177
* [network inspect](network_inspect.md)
178178
* [network rm](network_rm.md)
179-
* [Understand Docker container networks](../../userguide/networking/dockernetworks.md)
179+
* [Understand Docker container networks](../../userguide/networking/index.md)

docs/reference/commandline/network_rm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ deletion.
5050
* [network create](network_create.md)
5151
* [network ls](network_ls.md)
5252
* [network inspect](network_inspect.md)
53-
* [Understand Docker container networks](../../userguide/networking/dockernetworks.md)
53+
* [Understand Docker container networks](../../userguide/networking/index.md)

docs/reference/commandline/ps.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,23 @@ ea09c3c82f6e registry:latest /srv/run.sh 2 weeks ago
138138
48ee228c9464 fedora:20 bash 2 weeks ago Exited (0) 2 weeks ago tender_torvalds
139139
```
140140

141+
#### Killed containers
142+
143+
You can use a filter to locate containers that exited with status of `137`
144+
meaning a `SIGKILL(9)` killed them.
145+
146+
```bash
147+
$ docker ps -a --filter 'exited=137'
148+
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
149+
b3e1c0ed5bfe ubuntu:latest "sleep 1000" 12 seconds ago Exited (137) 5 seconds ago grave_kowalevski
150+
a2eb5558d669 redis:latest "/entrypoint.sh redi 2 hours ago Exited (137) 2 hours ago sharp_lalande
151+
152+
Any of these events result in a `137` status:
153+
154+
* the `init` process of the container is killed manually
155+
* `docker kill` kills the container
156+
* Docker daemon restarts which kills all running containers
157+
141158
#### Status
142159
143160
The `status` filter matches containers by status. You can filter using

docs/security/security.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ certificates](https.md).
120120

121121
The daemon is also potentially vulnerable to other inputs, such as image
122122
loading from either disk with 'docker load', or from the network with
123-
'docker pull'. As of Docker 1.3.2, images are now extracted in a chrooted
124-
subprocess on Linux/Unix platforms, being the first-step in a wider effort
125-
toward privilege separation. As of Docker 1.10.0, all images are stored and
126-
accessed by the cryptographic checksums of their contents, limiting the
123+
'docker pull'. As of Docker 1.3.2, images are now extracted in a chrooted
124+
subprocess on Linux/Unix platforms, being the first-step in a wider effort
125+
toward privilege separation. As of Docker 1.10.0, all images are stored and
126+
accessed by the cryptographic checksums of their contents, limiting the
127127
possibility of an attacker causing a collision with an existing image.
128128

129129
Eventually, it is expected that the Docker daemon will run restricted
@@ -272,3 +272,4 @@ pull requests, and communicate via the mailing list.
272272
* [Seccomp security profiles for Docker](../security/seccomp.md)
273273
* [AppArmor security profiles for Docker](../security/apparmor.md)
274274
* [On the Security of Containers (2014)](https://medium.com/@ewindisch/on-the-security-of-containers-2c60ffe25a9e)
275+
* [Docker swarm mode overlay network security model](../userguide/networking/overlay-security-model.md)

docs/security/trust/content_trust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ and [Notary](../../reference/commandline/cli.md#notary) configuration
3333
for the docker client for more options.
3434

3535
Once content trust is enabled, image publishers can sign their images. Image consumers can
36-
ensure that the images they use are signed. publishers and consumers can be
36+
ensure that the images they use are signed. Publishers and consumers can be
3737
individuals alone or in organizations. Docker's content trust supports users and
3838
automated processes such as builds.
3939

docs/swarm/images/service-vip.png

69.2 KB
Loading

docs/swarm/images/src/service-vip.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)