running bash in a docker

Words
31
Reading
1 min
Listen
Play
9y
  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