Памятка 03 · Operations

Network и storage

Адреса, ports, mounts и порядок triage тестового контура.

Какой URL?

  • В том же container: localhost:PORT.
  • Соседний service: service:CONTAINER_PORT.
  • С host: HOST_IP:HOST_PORT.

Публикация

-p HOST:CONTAINER
-p 127.0.0.1:8080:80

Внутренний traffic не требует published port.

Storage

  • Bind: source/workspace/reports.
  • Volume: DB persistent data.
  • tmpfs: memory-only temp data.
  • Writable layer: disposable state.

Triage

  1. Source namespace.
  2. Общая network и DNS.
  3. Target listen address/port.
  4. Published port для host access.
  5. Mount path и UID/GID.