8. docker run nginx

01
To Run an image as a Container
docker run nginx:stable-perl
You won't be able to check containers because
the terminal is now running as the container?

02
Open a new terminal to see the container running,
docker ps
this shows the port and is given a random name
03
To run and use same terminal, quit procces with
⌃ cntrl + 'C'
and add the -d
'dettach' flag
docker run -d nginx:stable-perl
you can see it running in both the
docker ps
**NOTICE even though we quit the other container in the termainl with control + c, it is still available and appears in the docker desktop container tab
04
find time in video when stop or remove part happensThis isn't in the tutorial at this point
to delete a container in the terminal, stop it, then remove with it's id or given name
docker rm
docker stop