Recall & Review
beginner
What is Docker in simple terms?
Docker is like a shipping container for software. It packages your app and everything it needs so it runs the same anywhere.
Click to reveal answer
beginner
Why use Docker for deploying a Svelte app?
Docker makes sure your Svelte app runs the same on your computer and on any server, avoiding "it works on my machine" problems.
Click to reveal answer
beginner
What is a Dockerfile?
A Dockerfile is a simple text file with instructions to build a Docker image. It tells Docker how to prepare your app's container.
Click to reveal answer
intermediate
In Docker deployment, what is an image vs a container?
An image is a blueprint with your app and setup. A container is a running instance of that image, like a live copy.
Click to reveal answer
intermediate
How do you expose your Svelte app's port in Docker?
You use the EXPOSE command in the Dockerfile and map the port when running the container with -p, so the app is reachable.
Click to reveal answer
What command builds a Docker image from a Dockerfile?
✗ Incorrect
The 'docker build' command reads the Dockerfile and creates an image.
Which file typically contains instructions to create a Docker image for a Svelte app?
✗ Incorrect
Dockerfile contains the step-by-step instructions to build the Docker image.
How do you make your Svelte app accessible outside the Docker container?
✗ Incorrect
EXPOSE declares the port, and -p maps it to the host so you can access the app.
What does the command 'docker run -p 5000:5000 my-svelte-app' do?
✗ Incorrect
It runs the container and connects the internal port 5000 to your computer's port 5000.
Why is Docker helpful for beginners deploying Svelte apps?
✗ Incorrect
Docker packages your app so it behaves the same on any computer or server.
Explain how you would create a Dockerfile to deploy a Svelte app.
Think about the steps to prepare and run your app inside a container.
You got /6 concepts.
Describe the difference between a Docker image and a Docker container in your own words.
Compare it to a cake recipe versus a baked cake.
You got /3 concepts.