THM : Intro to Docker
Last updated
Last updated
This guide walks you through the "Intro to Docker" room on TryHackMe, covering Docker basics, useful commands, and practical tasks for container management and orchestration. Whether you're new to Docker or refreshing your skills, this overview will help you gain a solid foundation in containerization.
No specific answers are needed for this task. If you've completed the Linux Fundamentals module on TryHackMe, you're well-prepared for this room.
Pull an Image: To pull a Docker image from Docker Hub, use:
List All Images: To list all Docker images on your system, use:
Example Command: To pull a specific image:
To pull a specific tag of an image:
Run a Container Interactively:
Run in Detached Mode:
Bind a Web Server to Port 80:
List Running Containers:
List All Containers (Including Stopped):
Specify Base Image:
Run a Command:
Build an Image from a Dockerfile:
Start Services with Docker Compose:
Stop and Remove Services:
Docker Compose File: The configuration file for Docker Compose is named docker-compose.yml
.
IPC (Interprocess Communication): Docker enables communication between processes in containers.
Docker Server Comparison: The Docker Server’s functionality can be compared to an API for managing and interacting with containers.
Identify Running Container: Connect to the machine to find the container name, which is typically listed as "CloudIsland."
Run a Web Server:
After launching the web server, visit the provided URL to retrieve the flag.