Jenkins with Docker and Kubernetes Quiz Questions and Answers

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

Is docker free for windows?

Answer :
  • Yes

How to delete a stopped container?

Answer :
  • Docker rm ID

What is the name of the mechanism to add a layer of isolation in containers?

Answer :
  • Namespace

How do you create a Docker container from an image?

Answer :
  • docker run -it -d --name

What are the features of the Docker engine?

Answer :
  • All of the above

How to stop a container?

Answer :
  • Docker stop con-id