running bash in a docker

Words
31
Reading
1 min
9y
Listen to this post
~1 min
  1. The docker conainer may be in the background
  2. docker exec /bin/bash ---> this doesn't work

The right command is:

docker exec -i -t 8479103adbe2 /bin/bash

where 8479103adbe2 is the image id.

running bash in a docker | Ecency