DockerCLI/docs/reference/commandline
Sebastiaan van Stijn 65a6660652
docs/reference: exec: update some examples
Use /bin/sh in the examples, as it's more likely to be present in a
container than bash (some users got confused by this, so using plain
"sh" in the examples could lead to less confusion).

Also added some extra wording around defaults, and how they're inherited
by the exec'd process.

It's definitely not "perfect" yet (lots to do in this document to improve
it), but it's a start :)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 60833d2046)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-01-07 12:51:23 +01:00
..
attach.md doc/reference: update attach reference 2023-01-07 12:51:23 +01:00
build.md Move notes about required buildkit 2023-01-07 12:51:22 +01:00
checkpoint.md Update most links in docs to use https by default 2021-10-15 12:58:41 +02:00
cli.md docs: fix links to BuildKit backend 2022-10-25 12:04:05 +02:00
commit.md docs: update examples to not use deprecated images 2023-01-07 12:51:23 +01:00
config.md docs: add reference for "docker config" commands 2021-05-04 12:32:33 +02:00
config_create.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
config_inspect.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
config_ls.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
config_rm.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
container.md remove unneeded comment from reference files 2020-03-19 15:15:23 +01:00
container_prune.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
context.md docs: fix (table) formatting, fix some broken links 2022-04-01 20:57:46 +02:00
context_create.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
context_export.md docs: fix, and touch-up "docker context" docs 2020-05-07 13:53:25 +02:00
context_import.md docs: fix, and touch-up "docker context" docs 2020-05-07 13:53:25 +02:00
context_inspect.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
context_ls.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
context_rm.md docs: fix, and touch-up "docker context" docs 2020-05-07 13:53:25 +02:00
context_update.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
context_use.md docs: fix (table) formatting, fix some broken links 2022-04-01 20:57:46 +02:00
cp.md docs: reference: remove trailing space to fix yaml formatting 2022-04-01 21:33:26 +02:00
create.md docs: unify "docker create" and "docker run" reference 2022-04-01 20:47:48 +02:00
diff.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
dockerd.md Fix the max-concurrent-downloads and max-concurrent-uploads configs documentation 2022-12-20 15:02:47 -03:00
events.md docs: update examples to not use deprecated images 2023-01-07 12:51:23 +01:00
exec.md docs/reference: exec: update some examples 2023-01-07 12:51:23 +01:00
export.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
history.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
image.md remove unneeded comment from reference files 2020-03-19 15:15:23 +01:00
image_prune.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
images.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
import.md docs: fix (table) formatting, fix some broken links 2022-04-01 20:57:46 +02:00
index.md docs: fix (table) formatting, fix some broken links 2022-04-01 20:57:46 +02:00
info.md docs/reference: info: update example output 2023-01-07 12:51:23 +01:00
inspect.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
kill.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
load.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
login.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
logout.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
logs.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
manifest.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
network.md reference docs: fix broken links and markdown touch-ups 2020-04-19 17:13:07 +02:00
network_connect.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
network_create.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
network_disconnect.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
network_inspect.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
network_ls.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
network_prune.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
network_rm.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
node.md remove unneeded comment from reference files 2020-03-19 15:15:23 +01:00
node_demote.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
node_inspect.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
node_ls.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
node_promote.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
node_ps.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
node_rm.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
node_update.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
pause.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
plugin.md remove unneeded comment from reference files 2020-03-19 15:15:23 +01:00
plugin_create.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
plugin_disable.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
plugin_enable.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
plugin_inspect.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
plugin_install.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
plugin_ls.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
plugin_push.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
plugin_rm.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
plugin_set.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
plugin_upgrade.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
port.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
ps.md docs: update examples to not use deprecated images 2023-01-07 12:51:23 +01:00
pull.md docs: update examples to not use deprecated images 2023-01-07 12:51:23 +01:00
push.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
rename.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
restart.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
rm.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
rmi.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
run.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
save.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
search.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
secret.md reference docs: fix broken links and markdown touch-ups 2020-04-19 17:13:07 +02:00
secret_create.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
secret_inspect.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
secret_ls.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
secret_rm.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
service.md reference docs: reformat notes 2020-04-19 17:52:26 +02:00
service_create.md docs: update examples to not use deprecated images 2023-01-07 12:51:23 +01:00
service_inspect.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
service_logs.md fix docs, completion and docker service 2020-08-06 17:37:08 +03:00
service_ls.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
service_ps.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
service_rm.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
service_rollback.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
service_scale.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
service_update.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
stack.md remove unneeded comment from reference files 2020-03-19 15:15:23 +01:00
stack_deploy.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
stack_ls.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
stack_ps.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
stack_rm.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
stack_services.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
start.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
stats.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
stop.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
swarm.md remove unneeded comment from reference files 2020-03-19 15:15:23 +01:00
swarm_ca.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
swarm_init.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
swarm_join-token.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
swarm_join.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
swarm_leave.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
swarm_unlock-key.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
swarm_unlock.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
swarm_update.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
system.md remove unneeded comment from reference files 2020-03-19 15:15:23 +01:00
system_df.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
system_events.md docs: update examples to not use deprecated images 2023-01-07 12:51:23 +01:00
system_prune.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
tag.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
top.md remove unneeded comment from reference files 2020-03-19 15:15:23 +01:00
trust_inspect.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
trust_key_generate.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
trust_key_load.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
trust_revoke.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
trust_sign.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
trust_signer_add.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
trust_signer_remove.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
unpause.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
update.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
version.md docs: reference: version: improve description 2022-12-15 15:23:12 +01:00
volume.md reference docs: fix broken links and markdown touch-ups 2020-04-19 17:13:07 +02:00
volume_create.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
volume_inspect.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
volume_ls.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
volume_prune.md docs: add anchor-tags for flags 2023-01-07 12:51:22 +01:00
volume_rm.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00
wait.md docs: use "console" code-hint for shell examples 2021-10-06 16:48:53 +02:00