Saturday 9 May 2020

Docker: -it: Connect to container stdin while running

You can use -it option to instructs Docker to allocate a pseudo-TTY connected to the container’s stdin.

$docker run -it ubuntu bash
root@723d542001e9:/# ls
bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
root@723d542001e9:/# 
root@723d542001e9:/# exit
exit
$



Previous                                                    Next                                                    Home

No comments:

Post a Comment