Merge pull request #8240 from HofmeisterAn/feature/8225-extend-documentation-docker-shell-exec-form

#8225 Add Docker shell and exec format documentation for CMD and ENTRYPOINT
This commit is contained in:
Megan Marsh 2019-10-16 11:42:49 -07:00 committed by GitHub
commit a3ec70c03d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,11 +94,12 @@ Allowed metadata fields that can be changed are:
- CMD
- String, supports both array (escaped) and string form
- EX: `"CMD [\"nginx\", \"-g\", \"daemon off;\"]"`
- EX: `"CMD nginx -g daemon off;"`
- EX: `"CMD [\"nginx\", \"-g\", \"daemon off;\"]"` corresponds to Docker exec form
- EX: `"CMD nginx -g daemon off;"` corresponds to Docker shell form, invokes a command shell first
- ENTRYPOINT
- String
- EX: `"ENTRYPOINT /var/www/start.sh"`
- String, supports both array (escaped) and string form
- EX: `"ENTRYPOINT [\"/bin/sh\", \"-c\", \"/var/www/start.sh\"]"` corresponds to Docker exec form
- EX: `"ENTRYPOINT /var/www/start.sh"` corresponds to Docker shell form, invokes a command shell first
- ENV
- String, note there is no equal sign:
- EX: `"ENV HOSTNAME www.example.com"` not