Results for “Compose service options”
Small, practical examples. Search by task or narrow things down below.
Copy a file into an image
Include a small application file during the build.
Dockerfile✓ Tested
Exclude generated files from an archive
Linux Commands: Place exclude options before the input paths to control archive membership.
Linux Commands✓ Tested
Handle a filename that begins with a dash
Linux Commands: Use -- to terminate command options before an unusual filename.
Linux Commands✓ Tested
Mount a host directory read-only
Expose existing files without allowing the container to change them.
bind mount✓ Tested
Pass an environment variable
Supply configuration without changing an image.
environment✓ Tested
Pass named parameters from a hashtable
Keep a command’s options together in a reusable object.
splatting✓ Tested
Provide a default environment value
Set a runtime default that can be overridden at startup.
Dockerfile✓ Tested
Read a field from container metadata
Use an inspect template for stable machine-readable output.
inspect✓ Tested
Read output from a completed container
Retrieve the stdout captured by Docker.
logs✓ Tested
Restrict a diff to one chosen path
Git: Use the double dash separator to distinguish a filename from revisions or options.
Git✓ Tested
Run a command in a running container
Execute an additional process inside an existing container.
exec✓ Tested
Run a one-off container
Run a command and remove its stopped container automatically.
run✓ Tested