Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shemul/638d0ee92aa09d105a32218a7a31033b to your computer and use it in GitHub Desktop.
Save shemul/638d0ee92aa09d105a32218a7a31033b to your computer and use it in GitHub Desktop.
Docker exec root or default user
# Root.
$ docker exec -u 0 -it {container_id/image_name} bash
or
# Default container's user.
$ docker exec -it {container_id/image_name} bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment