IT Labs & CertificationsDockerPractical
Docker: install and run your first container
I am a student. Help me install [Docker Desktop on Windows 11 with WSL 2 / Docker Engine on Ubuntu 24.04], check the install with docker version and docker run hello-world, and run an nginx container on port 8080. Tell me the system requirements I must check first. Act as my lab instructor. Give numbered steps, the exact commands or clicks for each step, how to verify that each step worked, and the 3 most common errors with their fixes. Explain each concept in one simple line before the steps. Ask me if anything is unclear.
IT Labs & CertificationsDockerPractical
Docker: images vs containers
Explain the difference between Docker images, containers and layers with a simple example. Then guide me to pull [nginx:alpine], run two containers from the same image, list them, view logs, open a shell inside one with docker exec, stop and remove them, and remove the image. Act as my lab instructor. Give numbered steps, the exact commands or clicks for each step, how to verify that each step worked, and the 3 most common errors with their fixes. Explain each concept in one simple line before the steps. Ask me if anything is unclear.
IT Labs & CertificationsDockerPractical
Docker: write a Dockerfile for a simple app
Help me write a Dockerfile for a simple [Python Flask/Node.js Express] app that shows a hello page. Explain every instruction (FROM, WORKDIR, COPY, RUN, EXPOSE, CMD), add a .dockerignore file, build the image with a tag, run it, and keep the image small with a slim base image. Act as my lab instructor. Give numbered steps, the exact commands or clicks for each step, how to verify that each step worked, and the 3 most common errors with their fixes. Explain each concept in one simple line before the steps. Ask me if anything is unclear.
IT Labs & CertificationsDockerPractical
Docker: volumes and bind mounts
Help me understand data persistence in Docker. Run a [MySQL/PostgreSQL] container with a named volume, add some data, delete and recreate the container to prove the data survives, then compare this with a bind mount for live code editing. Show how to list, inspect and remove volumes. Act as my lab instructor. Give numbered steps, the exact commands or clicks for each step, how to verify that each step worked, and the 3 most common errors with their fixes. Explain each concept in one simple line before the steps. Ask me if anything is unclear.
IT Labs & CertificationsDockerPractical
Docker: container networking
Help me create a user-defined bridge network, run two containers on it, and show that they can reach each other by container name. Explain port publishing with -p, the default bridge network, and how to inspect a network. Act as my lab instructor. Give numbered steps, the exact commands or clicks for each step, how to verify that each step worked, and the 3 most common errors with their fixes. Explain each concept in one simple line before the steps. Ask me if anything is unclear.
IT Labs & CertificationsDockerPractical
Docker: multi-container app with Docker Compose
Help me write a compose.yaml for a two-service app: a [Flask/Node.js] web app and a [Redis/PostgreSQL] database, with a named volume, environment variables and a published port. Show docker compose up -d, ps, logs, and down, and explain how services find each other by name. Act as my lab instructor. Give numbered steps, the exact commands or clicks for each step, how to verify that each step worked, and the 3 most common errors with their fixes. Explain each concept in one simple line before the steps. Ask me if anything is unclear.
IT Labs & CertificationsDockerPractical
Docker: tag and push an image to a registry
Help me push my image to [Docker Hub/GitHub Container Registry]: create a repository, log in with an access token instead of my password, tag the image with my username and a version, push it, and pull it on another machine. Remind me never to put passwords or keys inside an image. Act as my lab instructor. Give numbered steps, the exact commands or clicks for each step, how to verify that each step worked, and the 3 most common errors with their fixes. Explain each concept in one simple line before the steps. Ask me if anything is unclear.
IT Labs & CertificationsDockerPractical
Docker: clean-up and troubleshooting
Give me a troubleshooting and clean-up guide for Docker: a container that exits immediately, port already in use, permission denied on the Docker socket in Linux, and disk full. Show how to use docker logs, docker inspect, docker system df and docker system prune safely, explaining what each prune command deletes. Act as my lab instructor. Give numbered steps, the exact commands or clicks for each step, how to verify that each step worked, and the 3 most common errors with their fixes. Explain each concept in one simple line before the steps. Ask me if anything is unclear.