How do I run a docker container?

Thanh Hoan

New member
How do I run a docker container?
Answer
You can follow these steps:
  1. Use docker ps to get the name of the existing container.
  2. Use the command docker exec -it <container name> /bin/bash to get a bash shell in the container.
  3. Or directly use docker exec -it <container name> <command> to execute whatever command you specify in the container.
18 июл. 2018 г.
 

Tìm kiếm

Back
Top