💾 Archived View for freeshell.de › tldr › docker-exec.gmi captured on 2023-05-24 at 18:46:57. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

docker exec

Execute a command on an already running Docker container.

More information.

docker exec --interactive --tty {container_name} {/bin/bash}
docker exec --detach {container_name} {command}
docker exec --interactive -tty --workdir {path/to/directory} {container_name} {command}
docker exec --interactive --detach {container_name} {command}
docker exec --interactive --tty --env {variable_name}={value} {container_name} {/bin/bash}
docker exec --user {user} {container_name} {command}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY