Project case study
Docker Containers Lab
Building and running simple applications in Docker containers.
Goal
Learn how Docker containers package applications with their dependencies and run consistently across development and test environments.
Approach
- Run a Web Browser in a Docker Container.

- Run LibreOffice in a Docker Container and access via browser.

- Set up an isolated lab with Docker and Kali Linux.

- Access a Suite of IT Tools Inside a Docker Container.

- Run rockylinux distro and access the filesystem.

- Build a container image from a clear and minimal Dockerfile.
- Run applications with environment-specific configuration.
- Publish application ports and configure container networking.
- Add persistent storage with Docker volumes when needed.
- Use container logs and health checks to diagnose failures.
Lessons learned
Docker containers are very lightweight and take seconds to set up by downloading the image of the task, OS, tools, website, browser, etc, you want to run and use in a sandbox. Unique ports have to be entered in the script so it does not clash with other images when you run them. You have to specify the port of the Docker container as well as the port (after : colon) of the web browser URL.