Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 543 Bytes

docker: open container's cli.md

File metadata and controls

13 lines (8 loc) · 543 Bytes

Open container's CLI in Docker

Run docker ps to show all running/active containers. The thing which we need in this stage is ID.

Then run command below:

docker exec -it CONTAINER_ID /bin/bash

It'll open up directory of the container. In my case it was helpful to run seed file, but there are many different use cases for sure.

Special thanks for Alisher (деп рекламный вставкалар толып кетты дейсын гой). Appreciate your time spent on explanation