-1

I'm new to docker.

What does the -it means when running the container using docker run -it.

Searched a lot but couldn't get proper documentation.

Sridhar
  • 1
  • 2
  • 9
    Possible duplicate of [what is docker run -it flag?](https://stackoverflow.com/questions/48368411/what-is-docker-run-it-flag) – Patrick Lee Oct 06 '18 at 15:50

1 Answers1

2

The -it instructs Docker to allocate a pseudo-TTY connected to the container’s stdin; creating an interactive bash shell in the container.

docker run --name test -it node:alpine
Shiju
  • 438
  • 2
  • 7