Profile picture
Sidharth R
  • Home
  • Posts
  • Journal
  • Labs
  • Home
  • Posts
  • Journal
  • Search
  1. Home
  2. Labs
  3. Docker labs
  4. Publishing Ports in Docker

Publishing Ports in Docker

Task

Solution

Show solution

This is the first paragraph of detailed content. This is the second paragraph of even more detailed content.

  • You can also include lists
  • Or other markdown elements
service/networking/network-policy-default-deny-egress.yaml
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: default-deny-ingress
spec:
  podSelector: {}
  policyTypes:
  - Ingress
BASH
ls -R /etc/
grep "name" file.txt
PYTHON
name = "God"
greeting = f"Hello {name}"
print(greeting)

Terminal output

Before

  <figcaption class="terminal-title">ls output</figcaption>

$ ls -l …

After

Nerdsid.com

Links
  • Home
  • Contact
  • About
  • Posts
  • Journal
  • Quotes
  • Links worth your time
  • Notes
  • Style guide
© 2026 Sidharth R.
All content on this website is licensed under CC BY-NC-SA 4.0.