1. What does docker build -t app:1.0 . do? Junior A. list the currently running containers 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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account