9. docker logs

01

When the docker is running you can get log output with

make sure you have images running in container then run

docker logs 

to see logs

after running

docker run -d nginx

put whatever version after nginx: from here https://hub.docker.com/_/nginx

docker ps

02

If you don't have the image and you do the run command, it will download the images and run in the background when used with -d detach flag

docker run -d nginx