Category: Linux

  • Docker – Useful CURL:s For Querying Private Registry

    Docker – Useful CURL:s For Querying Private Registry

    Keep it minimal, who needs a fancy GUI for your Docker Registry when you have, CURL? 😉 Get all container images from registry: Example output: List all tags for container image: Example output: TIP, combine the curl with -s and jq for pretty output: Keep it CURL:in 👾

  • Docker – Host Your Own Private Container Registry

    Docker – Host Your Own Private Container Registry

    Docker Hub (hub.docker.com) provides a great and Free service for pushing, and pulling of course, Docker containers. Many of the major software providers use Docker Hub for their primary container distribution, and you yourself can create an account and push your own images. They do, however, only allow one free private repository. This may not…

  • Kubernetes – Quick Pod Shell Access With Kubeshell

    Kubernetes – Quick Pod Shell Access With Kubeshell

    Entering the bash/sh shell in an Kubernetes container can look like this: Or.. You can keep it simple with Kubeshell Press enter and you’re [hacker voice] in. GITHub.com/roubles is the author of kubeshell Easily install with pip: Hack away! 👾

  • MySQL – Calculating Disk Usage Per Database

    MySQL – Calculating Disk Usage Per Database

    The answer usually lies within /var/lib/mysql/[DATABASE]. But the answer can also be found in, you guessed it, information_schema! 😀 Here’s an one-liner for you, that displays database sizes in megabytes (nice long float() included) If gigabytes are more your thing, run the following: Example output: Query on 👾

  • Kubernetes – Kubectl MySQL Client One-Liner

    Kubernetes – Kubectl MySQL Client One-Liner

    Some of my applications, if not all of them, use MySQL in some fashion. The database pod is not exposed outside it’s kube-network service and is only reachable from within it’s namespace… Troubleshooting or random database querying can be a hassle. Here’s a one-liner to help you: The container will disappear when you exit the…