18 Containers · Docker CLI questions from the MLOps & Integration bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
B.build an image from the Dockerfile in the current directory and tag it app:1.0
C.start a container in the background mapping host port 8080 to container port 80
D.upload the tagged image to its remote registry
Answer + AI explanation with Pro
2. Which command will build an image from the Dockerfile in the current directory and tag it app:1.0?
Junior
A.docker logs -f web
B.docker build -t app:1.0 .
C.docker exec -it web bash
D.docker run -d -p 8080:80 app
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.docker build -t app:1.0 . — open an interactive shell inside the already-running container web
B.docker build -t app:1.0 . — upload the tagged image to its remote registry
C.docker build -t app:1.0 . — start a container in the background mapping host port 8080 to container port 80
D.docker build -t app:1.0 . — build an image from the Dockerfile in the current directory and tag it app:1.0
Answer + AI explanation with Pro
4. What does docker run -d -p 8080:80 app do?
Junior
A.list the currently running containers
B.start a container in the background mapping host port 8080 to container port 80
C.upload the tagged image to its remote registry
D.open an interactive shell inside the already-running container web
Answer + AI explanation with Pro
5. Which command will start a container in the background mapping host port 8080 to container port 80?
Junior
A.docker build -t app:1.0 .
B.docker ps
C.docker logs -f web
D.docker run -d -p 8080:80 app
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.docker run -d -p 8080:80 app — open an interactive shell inside the already-running container web
B.docker run -d -p 8080:80 app — start a container in the background mapping host port 8080 to container port 80
C.docker run -d -p 8080:80 app — list the currently running containers
D.docker run -d -p 8080:80 app — stream (follow) the stdout/stderr logs of the container named web
Answer + AI explanation with Pro
7. What does docker ps do?
Junior
A.list the currently running containers
B.start a container in the background mapping host port 8080 to container port 80
C.stream (follow) the stdout/stderr logs of the container named web
D.build an image from the Dockerfile in the current directory and tag it app:1.0
Answer + AI explanation with Pro
8. Which command will list the currently running containers?
Junior
A.docker logs -f web
B.docker ps
C.docker exec -it web bash
D.docker run -d -p 8080:80 app
Answer + AI explanation with Pro
9. Which statement is correct?
Junior
A.docker ps — open an interactive shell inside the already-running container web
B.docker ps — list the currently running containers
C.docker ps — stream (follow) the stdout/stderr logs of the container named web
D.docker ps — upload the tagged image to its remote registry
Answer + AI explanation with Pro
10. What does docker logs -f web do?
Junior
A.start a container in the background mapping host port 8080 to container port 80
B.list the currently running containers
C.stream (follow) the stdout/stderr logs of the container named web
D.upload the tagged image to its remote registry
Answer + AI explanation with Pro
11. Which command will stream (follow) the stdout/stderr logs of the container named web?
Junior
A.docker logs -f web
B.docker run -d -p 8080:80 app
C.docker push registry/app:1.0
D.docker ps
Answer + AI explanation with Pro
12. Which statement is correct?
Junior
A.docker logs -f web — build an image from the Dockerfile in the current directory and tag it app:1.0
B.docker logs -f web — stream (follow) the stdout/stderr logs of the container named web
C.docker logs -f web — upload the tagged image to its remote registry
D.docker logs -f web — open an interactive shell inside the already-running container web
Answer + AI explanation with Pro
13. What does docker exec -it web bash do?
Mid
A.start a container in the background mapping host port 8080 to container port 80
B.build an image from the Dockerfile in the current directory and tag it app:1.0
C.open an interactive shell inside the already-running container web
D.upload the tagged image to its remote registry
Answer + AI explanation with Pro
14. Which command will open an interactive shell inside the already-running container web?
Mid
A.docker run -d -p 8080:80 app
B.docker exec -it web bash
C.docker ps
D.docker logs -f web
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.docker exec -it web bash — upload the tagged image to its remote registry
B.docker exec -it web bash — list the currently running containers
C.docker exec -it web bash — open an interactive shell inside the already-running container web
D.docker exec -it web bash — stream (follow) the stdout/stderr logs of the container named web
Answer + AI explanation with Pro
16. What does docker push registry/app:1.0 do?
Mid
A.open an interactive shell inside the already-running container web
B.stream (follow) the stdout/stderr logs of the container named web
C.build an image from the Dockerfile in the current directory and tag it app:1.0
D.upload the tagged image to its remote registry
Answer + AI explanation with Pro
17. Which command will upload the tagged image to its remote registry?
Mid
A.docker exec -it web bash
B.docker ps
C.docker run -d -p 8080:80 app
D.docker push registry/app:1.0
Answer + AI explanation with Pro
18. Which statement is correct?
Mid
A.docker push registry/app:1.0 — start a container in the background mapping host port 8080 to container port 80
B.docker push registry/app:1.0 — list the currently running containers
C.docker push registry/app:1.0 — upload the tagged image to its remote registry
D.docker push registry/app:1.0 — build an image from the Dockerfile in the current directory and tag it app:1.0
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Containers · Docker CLI question come with Pro.