Question 1: DOCKER- Purpose of Docker
What is the primary purpose of Docker in modern development?
Question 2: DOCKER- Difference Between Image and Container
Which statement correctly distinguishes Docker images from containers?
Question 3: DOCKER- Code Snippet (Dockerfile Basics)
What is the purpose of this Dockerfile snippet?
Question 4: DOCKER- Build and Run Commands
What is the correct sequence to build and run a Docker image named `myapp`?
Question 5: DOCKER- Inspecting Images
Which command lists all Docker images on the local system?
Question 6: DOCKER- Code Snippet (Run Container With Port Mapping)
What does this command do?
Question 7: DOCKER- Volumes Purpose
Why are Docker volumes used?
Question 8: DOCKER- Code Snippet (Attach Volume)
What does this command achieve?
Question 9: DOCKER- Removing Containers and Images
Which commands remove a container and an image respectively?
Question 10: DOCKER- Networking Basics
What is the default network mode when a container is started?