DockerCLI/docs/reference/commandline
Sebastiaan van Stijn 60833d2046
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>
2022-12-05 17:10:05 +01:00
..
attach.md doc/reference: update attach reference 2022-12-05 17:10:05 +01:00
build.md docs: fix links to BuildKit backend 2022-10-25 11:54:35 +02:00
checkpoint.md Update most links in docs to use https by default 2021-10-15 15:04:36 +08:00
cli.md docs: fix links to BuildKit backend 2022-10-25 11:54:35 +02:00
commit.md docs: update examples to not use deprecated images 2022-12-05 17:10:05 +01:00
config.md move orchestration commands to their own section in --help output 2022-04-08 16:55:34 +02:00
config_create.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
config_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
config_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
config_rm.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
container.md tweak description of "docker run" command 2022-04-01 12:28:37 +02:00
container_prune.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
context.md docs: fix (table) formatting, fix some broken links 2022-03-30 15:03:25 +02:00
context_create.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
context_export.md docs: remove deprecated orchestrator flags 2022-02-24 12:28:29 +01:00
context_import.md docs: fix, and touch-up "docker context" docs 2020-05-07 13:53:25 +02:00
context_inspect.md Output compact JSON by default for --format=json 2022-03-15 15:42:35 +01:00
context_ls.md docs: fix (table) formatting, fix some broken links 2022-03-30 15:03:25 +02:00
context_rm.md docs: fix, and touch-up "docker context" docs 2020-05-07 13:53:25 +02:00
context_show.md introduce `context show` command 2022-04-25 14:40:24 +02:00
context_update.md docs: remove deprecated orchestrator flags 2022-02-24 12:28:29 +01:00
context_use.md docs: fix (table) formatting, fix some broken links 2022-03-30 15:03:25 +02:00
cp.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
create.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
diff.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
dockerd.md Fix the max-concurrent-downloads and max-concurrent-uploads configs documentation 2022-10-28 16:31:27 +01:00
events.md docs: update examples to not use deprecated images 2022-12-05 17:10:05 +01:00
exec.md docs/reference: exec: update some examples 2022-12-05 17:10:05 +01:00
export.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
history.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
image.md tweak description of "docker push" and "docker pull" commands 2022-04-01 12:33:05 +02:00
image_prune.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
images.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
import.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
index.md Add stack config command 2022-04-08 14:56:01 +02:00
info.md docs/reference: info: update example output 2022-12-05 17:10:05 +01:00
inspect.md docs: docker inspect --size 2022-11-17 14:26:35 +01:00
kill.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
load.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
login.md tweak description of login/logout 2022-04-04 10:44:11 +02:00
logout.md tweak description of login/logout 2022-04-04 10:44:11 +02:00
logs.md Remove deprecated note 2022-11-18 09:58:28 +01:00
manifest.md tweak description of login/logout 2022-04-04 10:44:11 +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 2022-03-30 15:05:29 +02:00
network_create.md docs: remove documentation about deprecated cluster-store 2022-05-17 11:00:51 +02:00
network_disconnect.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
network_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
network_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
network_prune.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
network_rm.md Add --force option to network rm subcommand 2022-04-29 13:56:33 +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-08-21 18:29:13 +02:00
node_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
node_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
node_promote.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
node_ps.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
node_rm.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
node_update.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
pause.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +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-08-21 18:29:13 +02:00
plugin_disable.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin_enable.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
plugin_install.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
plugin_push.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin_rm.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin_set.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
plugin_upgrade.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
port.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
ps.md docs: update examples to not use deprecated images 2022-12-05 17:10:05 +01:00
pull.md docs: update examples to not use deprecated images 2022-12-05 17:10:05 +01:00
push.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
rename.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
restart.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
rm.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
rmi.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
run.md docs: update link to docker cp 2022-10-31 20:24:44 +01:00
save.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
search.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
secret.md move orchestration commands to their own section in --help output 2022-04-08 16:55:34 +02:00
secret_create.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
secret_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
secret_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
secret_rm.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
service.md move orchestration commands to their own section in --help output 2022-04-08 16:55:34 +02:00
service_create.md docs: update examples to not use deprecated images 2022-12-05 17:10:05 +01:00
service_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02: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 2022-03-30 15:05:29 +02:00
service_ps.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
service_rm.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
service_rollback.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
service_scale.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
service_update.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
stack.md move orchestration commands to their own section in --help output 2022-04-08 16:55:34 +02:00
stack_config.md Remove unsupported alias from `docker stack config` help output 2022-04-29 20:18:58 +00:00
stack_deploy.md Add stack config command 2022-04-08 14:56:01 +02:00
stack_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
stack_ps.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
stack_rm.md docs: remove deprecated orchestrator flags 2022-02-24 12:28:29 +01:00
stack_services.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
start.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
stats.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
stop.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +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 2022-03-30 15:05:29 +02:00
swarm_init.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
swarm_join-token.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
swarm_join.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
swarm_leave.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
swarm_unlock-key.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
swarm_unlock.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
swarm_update.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +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 2022-03-30 15:05:29 +02:00
system_events.md docs: update examples to not use deprecated images 2022-12-05 17:10:05 +01:00
system_prune.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
tag.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
top.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
trust_inspect.md linting: ST1005: error strings should not be capitalized (stylecheck) 2022-09-03 21:25:42 +02:00
trust_key_generate.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
trust_key_load.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
trust_revoke.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
trust_sign.md linting: ST1005: error strings should not be capitalized (stylecheck) 2022-09-03 21:25:42 +02:00
trust_signer_add.md linting: ST1005: error strings should not be capitalized (stylecheck) 2022-09-03 21:25:42 +02:00
trust_signer_remove.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
unpause.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
update.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00
version.md docs: reference: version: add info about API version negotiation 2022-06-02 22:53:23 +02: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 2022-03-30 15:05:29 +02:00
volume_inspect.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
volume_ls.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
volume_prune.md docs: add anchor-tags for flags 2022-03-30 15:05:29 +02:00
volume_rm.md docs: use "console" code-hint for shell examples 2021-08-21 18:29:13 +02:00
wait.md cli: use custom annotation for aliases 2022-06-28 17:32:09 +02:00