Home / Skill tests / Docker

Docker test: 10 questions to check yourself

In plain words: Docker packs a program together with everything it needs, so it runs the same way on a laptop and on a server. Answer ten questions, press the button, and see which you got right and why.

1,513 open jobs name Docker today, with a median advertised pay of $198K. The questions are the kind that come up in a first interview.

1What is a container?
2What is an image?
3Which file describes how to build an image?
4What does docker ps show?
5What happens to files written inside a container when the container is deleted?
6What does docker run -p 8080:80 nginx do?
7What is Docker Compose for?
8Why does the order of lines in a Dockerfile matter for build speed?
9Where do images usually come from?
10Which is the safer choice for a program inside a container?

Questions about this test

How do I prepare for a Docker interview?
Work through realistic questions, read why each answer is right, then redo the ones you missed. This test has ten, taken from what interviewers commonly ask a beginner or a junior. Then read the postings: the 1,513 open jobs that name Docker show what employers expect on top of it.
Is this Docker test free?
Yes. It needs no account and no email, runs in your browser and sends nothing anywhere.
What does my score mean?
It is a self-check. Eight or more right means the basics are fresh; five to seven means a good base with gaps; under five means more practice first. It is not an official certificate.

More tests: SQL Excel Python JavaScript Linux All tests