docker

Docker: run Python
Sep 24, 2024 docker python containers
Quick pair of commands to run Python code within a container: % docker run -d --rm --name godebug --mount type=bind,source="$(pwd)",target=/go/src arm32v7/golang:alpine % docker exec -it godebug sh /go # cd src/ NOTE: on the host machine, the Python code is stored in the current directory (pwd), it will be found under /go/src inside the container

Docker Swarm on ClusterHAT
Sep 23, 2024 (updated) docker armv6 armv7 arm64 aarch64 containers
INDEX The basics: hardware architecture Our app, an HTTP server Docker Swarm, finally! Installation of ClusterHAT has been described in a previous post. The basics: hardware architecture Controller: pi@ctrl $ docker info | grep Architecture Architecture: armv7l Pi Zeros:

Buildx: building multi-arch images
Jan 29, 2024 (updated) docker x86_64 x64 amd64 armv6 armv7 arm64 aarch64 containers
In this post I’ll explore how to build images that can run on multiple architectures. My scenario is composed of the two following hosts: on x86_64: $ docker info | grep Architecture Architecture: x86_64 $ cat /proc/cpuinfo | grep "model name" | uniq model name: Intel(R) Core(TM) i5-3317U CPU @ 1.

Docker in depth: namespaces, cgroups, images from scratch
Jun 13, 2023 (updated) docker arm64 aarch64 containers
Images and containers Let’s take a closer look at what’s in an image. NOTE: I’m filtering out lots of info by using Docker’s –format command. user@laptop $ docker inspect --format="{{json .