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
$
No comments:
Post a Comment