Docker

get shell for docker vm on mac

For setting values on the docker vm on your mac you need to get a shell. Elastic has some statements online that don’t work on latest MacOS (14.1.1 + docker desktop 24.0.6). To get a shell you can use this command:

keycloak in docker compose with healthcheck

Docker images from quay.io/keycloak/keycloak don’t contain any commands for a usual healthcheck and installing software is also not trivial. In a discussion on https://github.com/keycloak/keycloak/issues/17273 I found a solution that checks /proc/net/tcp for an open port 8080. That file contains all open ports in hex format. cat and grep are included in the image. So a …

keycloak in docker compose with healthcheck Read More »

docker pull proxyconnect tcp: dial tcp: lookup http.docker.internal on 192.168.65… timeout

After upgrading to macOS 14.1 my docker installation stopped woring and when I tried to pull an image it answered with the following error message: 192.168.65.0/24 is the configured docker internal network of Docker Desktop. It was running on defaults and I wasn’t aware of any manual changes. DNS of my host system worked properly: …

docker pull proxyconnect tcp: dial tcp: lookup http.docker.internal on 192.168.65… timeout Read More »

How to create docker containers for multiple platforms / architectures

First you need to choose a base image that is available for the target platforms as well. Create your Dockerfile as usual and then build the container for different platforms. This example would create an amd64 and a aarch64 (arm64/v8) image: Based on these you can create a manifest and upload it: This would already …

How to create docker containers for multiple platforms / architectures Read More »