{"id":22242285,"url":"https://github.com/nikitamishagin/netutils","last_synced_at":"2026-02-02T10:19:52.609Z","repository":{"id":265284958,"uuid":"895670200","full_name":"nikitamishagin/netutils","owner":"nikitamishagin","description":"This project provides a Docker image based on Ubuntu 24.04 (codename \"noble\") with a collection of essential network utilities. These tools are useful for network diagnostics, testing, and troubleshooting.","archived":false,"fork":false,"pushed_at":"2025-08-07T11:58:37.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-07T13:37:27.488Z","etag":null,"topics":["docker","kubernetes-debugging","netutil"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikitamishagin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-28T16:41:02.000Z","updated_at":"2025-08-07T11:50:06.000Z","dependencies_parsed_at":"2024-11-28T18:32:43.721Z","dependency_job_id":"d62c257b-76e9-4317-9640-b7148a5662a2","html_url":"https://github.com/nikitamishagin/netutils","commit_stats":null,"previous_names":["nikitamishagin/netutils"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nikitamishagin/netutils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitamishagin%2Fnetutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitamishagin%2Fnetutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitamishagin%2Fnetutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitamishagin%2Fnetutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikitamishagin","download_url":"https://codeload.github.com/nikitamishagin/netutils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitamishagin%2Fnetutils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29009996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T08:40:12.472Z","status":"ssl_error","status_checked_at":"2026-02-02T08:40:10.926Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","kubernetes-debugging","netutil"],"created_at":"2024-12-03T04:15:31.181Z","updated_at":"2026-02-02T10:19:52.602Z","avatar_url":"https://github.com/nikitamishagin.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"netutils-logo.png\" alt=\"Project logo\" width=\"380\"\u003e\n\u003c/div\u003e\n\n# Network Utilities Docker Image\n\nThis project provides a Docker image based on Alpine with a collection of essential network utilities. These tools are\nuseful for network diagnostics, testing, and troubleshooting.\n\n## Project Goals\n\n- Provide a convenient, ready-to-use image for in-cluster network diagnostics.\n- Keep the image lightweight while including essential tooling.\n- Offer a familiar Bash environment with autocompletion for productive interactive use.\n- Ensure compatibility with Kubernetes workflows (e.g., kubectl exec/debug).\n- Deliver an image tailored to **my own** requirements.\n\n## Included Utilities\n\nThe Docker image includes the following packages:\n\n- **bash**: GNU Bourne-Again SHell with bash-completion.\n- **bash-completion**: Command-line tab completion and hints for Bash to improve interactive shell usability.\n- **bind-tools**: DNS utilities including `dig` and `nslookup`.\n- **busybox-extras**: Additional utilities including `telnet`.\n- **curl**: Command-line tool for transferring data with URLs, supporting various protocols.\n- **iproute2**: Collection of utilities for network management, including `ip`.\n- **iputils**: Tools to send ICMP ECHO_REQUEST to network hosts using `ping`.\n- **jq**: Lightweight and flexible command-line JSON processor for parsing and querying API responses.\n- **nmap**: Network exploration tool and security/port scanner.\n- **openssl**: Toolkit for Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols.\n- **tcpdump**: Command-line packet analyzer.\n- **traceroute**: Print the route packets take to a network host.\n- **vim**: Vi IMproved, a programmers text editor.\n- **wget**: Command-line utility for retrieving files from the web.\n- **yq**: YAML processor with jq-like syntax, useful for parsing and modifying Kubernetes manifests and other YAML\n  files.\n\n## Usage in Kubernetes\n\nTo deploy this image in a Kubernetes cluster, you can use the following deployment manifest. This setup allows you to\nrun the network utilities in a pod.\n\n### Deployment Manifest\n\n```yaml\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: netutils\nspec:\n  replicas: 1\n  selector:\n    matchLabels:\n      app: netutils\n  template:\n    metadata:\n      labels:\n        app: netutils\n    spec:\n      containers:\n        - name: netutils\n          image: nikitamishagin/netutils:latest\n          command: [ \"/bin/bash\", \"-c\", \"sleep infinity\" ]\n          # Uncomment below to run as a privileged pod\n          # securityContext:\n          #   privileged: true\n      # Uncomment and modify nodeSelector below for specific node assignment\n      # nodeSelector:\n      #   kubernetes.io/hostname: specific-node\n      # Uncomment the line below to enable host networking\n      # hostNetwork: true\n      dnsPolicy: ClusterFirst  # Default policy which uses cluster DNS first\n      # Available options:\n      # - ClusterFirst: Use cluster DNS service first, falling back to upstream DNS servers.\n      # - ClusterFirstWithHostNet: Similar to ClusterFirst, but used when host networking is enabled (hostNetwork: true).\n      # - Default: Use the default DNS resolver configured on the node.\n      # - None: No DNS settings will be provided by the cluster. Use dnsConfig for custom DNS.\n      # dnsConfig:\n      #   nameservers:\n      #     - 8.8.8.8\n      #     - 8.8.4.4\n      #   searches:\n      #     - example.com\n      #   options:\n      #     - name: ndots\n      #       value: \"2\"\n```\n\n### Example Usage\n\nOnce deployed, you can exec into the pod and use the network utilities:\n\n```bash\nkubectl exec -it deployments/netutils -- bash\n```\n\nThen, you can run any of the utilities as needed.\n\n### Using with kubectl debug\n\nYou can also use this image with `kubectl debug` to troubleshoot existing pods:\n\n```bash\n# Attach netutils container to an existing pod\nkubectl debug -it pod/your-pod-name --image=nikitamishagin/netutils:latest\n\n# Debug a node with netutils (requires privileged access)\nkubectl debug node/your-node-name -it --image=nikitamishagin/netutils:latest\n```\n\nThe image is configured with bash as the entrypoint for kubectl debug compatibility.\n\n## CI/CD\n\nThis project includes a GitHub Actions workflow configured to automatically build and push the Docker image to Docker\nHub whenever a new tag is pushed to the repository. The image is tagged with both the specific Git tag and `latest`.\n\n## License\n\nThis project is licensed under the Apache License 2.0. See the [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitamishagin%2Fnetutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikitamishagin%2Fnetutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitamishagin%2Fnetutils/lists"}