Reset Minikube on MacOS (VirtualBox VM) to the initial IP

In case your Minikube does not get the inital IP assigned from the VirtualBox VM manager but it increases on next minikube start to or higher, you can reset to the initial IP as follows:

Assuming: Mac OS, VirtualBox VM

$ minikube ip

$ minikube stop
$ rm ~/Library/VirtualBox/HostInterfaceNetworking-vboxnet*
$ minikube start

$ minikube ip

Delete docker image from dockerhub (v2 api)

In order to delete a docker image from a private dockerhub repository server you need to know the digest which can easyly be determined from the header of a manifest request for a specific image tag.

Get a list of available docker image tags for a certain image (`application/json` response):
$ curl --silent

Having a list of image tags to determine the digest:
$ for tag in latest master-621d4bc master 1.0.0 1.0.1; do \
curl --silent --head -H "Accept: application/vnd.docker.distribution.manifest.v2+json" \${tag} | \
grep docker-content-digest; done | sort | uniq -c

Do delete a specific docker image use the relevant digest and curl a DELETE request to the dockerhub API:
$ curl --silent -X DELETE${digest}

Kubernetes helm: Incompatible client:server versions Max OS X)

If running a `helm` command is returning an ‚incompatible versions‘ error like the following, you can either upgrade the server version or downgrade the client version.

Error: incompatible versions client[v2.13.1] server[v2.11.0]

I decided to install several client versions and switch on demand, because upgrading the server version was not an option for me. In addition, having multiple client versions is more flexible in dealing with multiple kubernetes cluster having different versions.

Install the matching `kubernetes-helm` version manually via `brew`:

  1. Search on Github for the kubernetes-helm.rb file for the required version (2.11.0 in my case):
  2. Click the commit hash (ee94af7 in my case)
  3. Click the „View“ and then „Raw“ button to copy the raw url.
  4. Install the choosen `kubernetes-helm` version (see commands below)
  5. Switch between your installed versions

$ brew unlink kubernetes-helm
$ brew install
$ brew info kubernetes-helm
$ brew switch kubernetes-helm 2.11.0

Fetch the value of a key from memcache server with telnet

In case you want to fetch the value of a key stored in a memcache you could connect to the memcache server via telnet and query the server for the key:

Connect to the memcache server via telnet:
:$ telnet memcache-server-host 11211

Query for stats slabs and use the slab number t query with cachedump:

stats slabs
STAT 25:chunk_size 21696
STAT 25:chunks_per_page 48

stats cachedump 25 0
ITEM GTLD_DATA [18459 b; 1520683204 s]


Read more: