Docker Fundamentals Quiz Questions and Answers

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

Answer :
  • docker compose

How do you access a running container?

Answer :
  • Docker exec -it con0id

Is docker free for windows ?

Answer :
  • yes

How to delete a stopped container?

Answer :
  • Docker rm ID

How many private repositories are allowed for an individual on Docker hub?

Answer :
  • 1

How to stop a container?

Answer :
  • Docker stop con-id

Which command to look for all containers either stopped or running?

Answer :
  • Docker ps -a

How do you get the number of containers running, paused, and stopped?

Answer :
  • Docker info

What is the name of the central location of Docker images?

Answer :
  • Docker hub

Once you’ve worked with an image, how do you push it to the Docker hub?

Answer :
  • Docker push