Show List

Quiz - Docker - 5

55%

Public Average Score
Select the right answer for below questions:

Which command is used to stop a running Docker container?
docker stop
docker kill
docker pause
docker end
docker stop

What is the purpose of the Docker network?
To manage Docker images
To manage Docker containers
To connect Docker containers
To store data created by Docker containers
To connect Docker containers

Which of the following commands is used to view information about a Docker image?
docker ls
docker info
docker inspect
docker view
docker inspect

What is the purpose of the Docker build command?
To run a Docker container
To create a new Docker image
To view logs for a Docker container
To manage Docker networks
To create a new Docker image

Which of the following is not a valid Docker container state?
Running
Stopped
Sleeping
Paused
Sleeping

What is the purpose of the Docker exec command?
To start a new Docker container
To view the logs for a Docker container
To manage Docker networks
To run a command inside a running Docker container
To run a command inside a running Docker container

Which of the following commands is used to remove a Docker image?
docker delete
docker erase
docker rmi
docker remove
docker rmi

What is the purpose of the Docker swarm leave command?
To remove a Docker node from a swarm
To remove a Docker service from a swarm
To remove a Docker stack from a swarm
To remove a Docker container from a swarm
To remove a Docker node from a swarm

Which of the following statements is true about Docker volumes?
Volumes are always stored on the host machine
Volumes can be shared between multiple containers
Volumes can only be used by one container at a time
Volumes are created automatically by Docker
Volumes can be shared between multiple containers

What is the purpose of the Docker swarm join command?
To add a Docker node to a swarm
To add a Docker service to a swarm
To add a Docker stack to a swarm
To add a Docker container to a swarm
To add a Docker node to a swarm

Submit
Retry
{"qz1-699210":"docker stop","qz1-699211":"To connect Docker containers","qz1-699212":"docker inspect","qz1-699213":"To create a new Docker image","qz1-699214":"Sleeping","qz1-699215":"To run a command inside a running Docker container","qz1-699216":"docker rmi","qz1-699217":"To remove a Docker node from a swarm","qz1-699218":"Volumes can be shared between multiple containers","qz1-699219":"To add a Docker node to a swarm"}

    Leave a Comment


  • captcha text