Changes

Jump to: navigation, search

Docker

114 bytes added, 20:00, 25 June 2018
docker-compose.yml syntax
* '''build''': In version 1 file format, build is different in two ways:
** Only the string form (build: .) is allowed - not the The object form that is allowed in Version 2 and up.
** Using build together with image is not allowed. Attempting to do so results in an error.
** Note: This option is ignored when deploying a stack in swarm mode with a (version 3) Compose file. The docker stack command accepts only pre-built images.
 
 
* '''dockerfile''': Dockerfile-alternate
 
 
* '''command''': Override the default command. <pre> command: ["bundle", "exec", "thin", "-p", "3000"] </pre>
 
 
* '''container_name''': Specify a custom container name, rather than a generated default name
 
 
* '''dns''': Custom DNS servers. Can be a single value or a list.
<pre>
- 9.9.9.9
</pre>
 
 
* '''dns_search''': Custom DNS search domains. Can be a single value or a list.
<pre>

Navigation menu