(CC - 23) Lab 5
(CC - 23) Lab 5
(CC - 23) Lab 5
Lab 5
Agenda
DEMO
Demo: Getting a Shell Inside Containers
$ docker container run –it --name webserver nginx bash
# write exit to exit the container’s shell.
$ docker container run –it --name ubuntu-os ubuntu -it option will get you
inside the container. then, we will install nano text editor inside the
container
$ root@9f23704290ae:/# apt-get update && apt-get install nano –y
$ root@9f23704290ae:/# nano test.txt will open test.txt file for edit
# write any text inside the file press CTRL+O to save then CTRL-X to exit the
editor
# try to open it again to check if your data is saved