Sunday, November 3, 2019

what is docker run -it flag?



docker run -it ubuntu:xenial /bin/bash starts the container in the interactive mode (hence -it flag) that allows you to interact with /bin/bash of the container. That means now you will have bash session inside the container, so you can lsmkdir, or do any bash command inside the container.
The key here is the word "interactive". If you omit the flag, the container still executes /bin/bash but exits immediately. With the flag, the container executes /bin/bash then patiently waits for your input.

No comments:

Post a Comment

A Involução Gerencial Brasileira Pós-Pandemia: Análise Estratégica da Incapacidade de Transição Remota e o Imperativo da Responsabilização Bottom-Up

  I. Sumário Executivo: A Tese da Incompetência Estrutural 1.1. O Contraste Crítico e a Falha de Adaptação A transição pós-pandemia evidenci...