Quick Actions
docker exec
Description
Run a command in a running container.
Command
docker exec
Examples
Execute command in container
docker exec my-container ls /app
Open interactive shell
docker exec -it my-container /bin/bash
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
-it |
string | No | Interactive terminal |
-u |
string | No | Username or UID |
Command Info
Category:
Container Management
Type:
Docker
Views:
11
Status:
Active
Tags
container
execute
command