Docker Quiz

  1. Pull latest Ubuntu image, run a container with it, go inside the container and install nodejs in it and run a simple hello world program.
  2. Docker keeps a container running as long as the process it started inside the container is still running. How do you check if the container is running. Mention the steps you would take to find out.
  3. What command is used to build an image.
  4. Make a dockerfile to run a simple http python flask server, mention all the steps you will take.
  5. Make a dockerfile to run a simple one page HTML website, mention all the steps you will take.