Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 371 Bytes

File metadata and controls

21 lines (14 loc) · 371 Bytes

Docker Exec (docker exec)

docker exec

Run a command in a running container

Usage

docker exec {options} {container} {command} {ARG...}

Example

root@ip-172-31-36-54:~# docker exec -it 0ce6bc8abc43 /bin/bash
root@0ce6bc8abc43:~# whoami
root

Source: Docker Docs