21
Systems + delivery / Intermediate
Linux, networking, and Docker
Linux service basics, permissions, ports, IP addressing, sockets, reverse proxies, containers, and deployment troubleshooting.
01Linux troubleshooting toolkit
bashNetwork + service inspection
ip -br addr
ip route
ss -lntup
systemctl --failed
journalctl -u myservice --since "30 min ago"
df -h
free -h
02Network layers you use constantly
- IP address identifies an interface on a network.
- A port identifies a listening application endpoint.
- TCP provides ordered reliable byte streams; UDP provides datagrams without TCP reliability semantics.
- DNS maps hostnames to addresses.
- TLS protects HTTP in transit and authenticates the server certificate.
03Container model
dockerfileMinimal Python container idea
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["gunicorn", "manage:app", "--bind", "0.0.0.0:10000"]