Docker exec: Difference between revisions
Jump to navigation
Jump to search
Line 28: | Line 28: | ||
==Attach to a Running Container== | ==Attach to a Running Container== | ||
As the current user: | |||
As root: |
Revision as of 07:02, 26 November 2017
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: