Docker exec

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

Attaches to a running container.

docker exec [-u <''uid''>] -it <running-cotainer-image-name> bash 

Options

-i

Interactive.

-t

Allocated pseudo-TTY

Scenarios

Attach to a Running Container

As the current user:

As root: