Docker Fundamentals Quiz Questions and Answers

Which option is required to define network type for container?

Answer :
  • --network

What is the directory path of layers?

Answer :
  • /var/lib/docker/

____________ includes the application and all of its dependencies.

Answer :
  • docker container

Docker can build images automatically by reading the instructions from a file called what?

Answer :
  • dockerfile

Which is a YAML file which contains details about the services, networks, and volumes for setting up the Docker application?

Answer :
  • docker compose

Is docker free for windows?

Answer :
  • yes

What is the Docker command to see container logs?

Answer :
  • docker logs

Which command is used for running the images as a container?

Answer :
  • Docker run -it -d --name containername image

What port does the Docker registry use?

Answer :
  • 5000

How do you access a running container?

Answer :
  • Docker exec -it con-id shell