docker-compose: update formatting

This commit is contained in:
Rico Sta. Cruz 2018-03-17 13:30:02 +08:00
parent eceeeadb12
commit f1c0667e6d
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 11 additions and 4 deletions

View File

@ -59,23 +59,30 @@ CMD ["bundle", "exec", "rails", "server"]
```docker
ENTRYPOINT ["executable", "param1", "param2"]
ENTRYPOINT command param1 param2
# an ENTRYPOINT allows you to configure a container that will run as an executable.
```
Configures a container that will run as an executable.
```docker
ENTRYPOINT exec top -b
# this form will use shell processing to substitute shell environment variables, and will ignore any CMD or docker run command line arguments
```
This will use shell processing to substitute shell variables, and will ignore any `CMD` or `docker run` command line arguments.
### Metadata
```docker
LABEL version="1.0"
```
```docker
LABEL "com.example.vendor"="ACME Incorporated"
LABEL com.example.label-with-value="foo"
LABEL version="1.0"
```docker
```docker
LABEL description="This text illustrates \
that label-values can span multiple lines."
# add a metada
```
## See also