Merge pull request #1711 from aanand/custom-names
Add container_name option for specifying a custom container name
This commit is contained in:
commit
cc0bfea8a1
4 changed files with 34 additions and 6 deletions
10
docs/yml.md
10
docs/yml.md
|
|
@ -239,6 +239,16 @@ It's recommended that you use reverse-DNS notation to prevent your labels from c
|
|||
- "com.example.department=Finance"
|
||||
- "com.example.label-with-empty-value"
|
||||
|
||||
### container_name
|
||||
|
||||
Specify a custom container name, rather than a generated default name.
|
||||
|
||||
container_name: my-web-container
|
||||
|
||||
Because Docker container names must be unique, you cannot scale a service
|
||||
beyond 1 container if you have specified a custom name. Attempting to do so
|
||||
results in an error.
|
||||
|
||||
### log driver
|
||||
|
||||
Specify a logging driver for the service's containers, as with the ``--log-driver`` option for docker run ([documented here](http://docs.docker.com/reference/run/#logging-drivers-log-driver)).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue