3 ms·
I personally find the interactive switch very useful to actually control the container. You can use "-it" flag for this. docker run -it [IMAGE_NAME] [ENTRYPO
by team-o 6y ago
I personally find the interactive switch very useful to actually control the container. You can use "-it" flag for this.
docker run -it [IMAGE_NAME] [ENTRYPOINT]
e.g.
docker run -it ubuntu:xenial /bin/bash
- fauria 6y agoI would recommend adding "--rm", to avoid leaving leftovers when the container exits: https://docs.docker.com/engine/reference/run/#clean-up---rm https://docs.docker.com/engine/reference/run/#clean-up---rm