💾 Archived View for freeshell.de › tldr › docker-exec.gmi captured on 2023-04-19 at 23:46:14. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Execute a command on an already running Docker container.
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).