Docker 101: Execute Commands in a Running Container
Learn how to execute commands inside running containers using 'docker exec' - a crucial skill for debugging containerized applications and exploring container environments.
Focused hands-on problems designed to help you hone your DevOps or Server Side skills. Some challenges are more educational, while others are based on real-world scenarios. The platform provides hints and feedback for each challenge, including automated solution checks.
Learn how to execute commands inside running containers using 'docker exec' - a crucial skill for debugging containerized applications and exploring container environments.
Discover why host environment variables aren't visible to containers and how to properly pass them to containerized applications in Docker.
Learn how to override a container's default entrypoint to run an interactive shell instead of the intended application, a useful technique for debugging and exploring containerized applications.
Learn when to use the -t flag in 'docker run' to allocate a pseudo-TTY (terminal) for containers, enabling terminal-specific features like cursor control, colors, and signal handling.
Practice sending binary data to a containerized CLI tool - a helpful scripting pattern you'll often find in CI/CD pipelines and other automation jobs.
Create two partitions on a blank disk: one smaller ext4 for service logs and the rest btrfs for service data. Mount both and prove they work.
Practice creating a fresh GPT partition, formatting it as ext4, and mounting it on the filesystem tree.
Practice configuring Kubernetes to pull images from a private registry and run Pods with authenticated registry access.
Practice formatting drives in Linux: identify the drive, format it as ext4, mount it, and verify the filesystem works as expected.