Computer Science, asked by Mahek1800, 1 year ago

What happens when you execute the command docker run debian /bin/sh?

Answers

Answered by PoojaBurra
0

Installation and the setup went well but when I tried to create my first container i faced a problem.  

I tried to process an interactive bash shell on the container but that didn’t work. i have no output and no errors in log file.  

Here’s the commands that i tried

docker exec -it “container-id” bash

docker exec -it “container-id” /bin/bash

But when i run .exe file without a input that’s worked.

Answered by Sidyandex
0

In case you are already conscious of the name of the container and if you do not run your ps in docker for listing the processes of the OS that are running.


You can always use the docker run or even go forward and execute the docker exec but only after specifying the interactive version of the command, i.e. by using -i flag and allocate a terminal by specifying -t.

Similar questions