container
Posts tagged with #container
Total: 4
the proc virtual filesystem
Notes
| 2025-09-19
(updated 2025-10-25)
| 1 min read
#container
#linux
#sysadmin
Usually at least one of those is present on any system
- top
- htop / another top variant
- ps
But sometimes the usual suspects are not available, especially in minimal containers.
But there is another, more low level, way that works: /proc
This is a virtual filesystem provided by the kernel about running processes.
So to mirror something like this:
$ ps aux |grep sleep
5 root 0:00 sleep 1000
21 root 0:00 sleep 10000000
36 root 0:00 grep sleep
We could do:
Read more…
Notes
| 2024-07-25
(updated 2025-10-25)
| 2 min read
#cicd
#container
#devops
#hashicorp-vault
In many CI/CD workflows interfacing with Hashicorp Vault is required.
However, their CLI (or better called unified binary) is stupidly big with more than 400MB
and they seem to have no interest in making it any smaller.
This is often a undesired size increase, especially when optimizing for pull and run time in CI/CD.
This note outlines a solution that brings us down from 400MB+ on disk for vault to about 300KB using curl and jq.
Read more…
Notes
| 2024-04-29
(updated 2025-10-25)
| 1 min read
#cheatsheet
#container
#docker
#podman
Most of these should work the same with any OCI compliant client.
Tested with podman and docker, unless otherwise indicated.
# Run container interactively
podman run -it IMAGE:TAG SHELL
# With auto removing the container on exit
podman run -it --rm IMAGE:TAG SHELL
# With current working dir mounted to container
podman run -it -v ${PWD}:/tmp/host-dir/ IMAGE:TAG SHELL
# Detaching from the interactive session
# Keybinding: Ctrl+P, then Ctrl+Q
# Attaching to a container
podman attach "ID OR NAME"
Notes
| 2021-08-10
(updated 2025-10-25)
| 1 min read
#container
#dns
#linux
#sysadmin
Usually at least one of those is present on any system
But sometimes the usual suspects don’t work, especially in container-land.
After trying them you may try some more involved/unknown things:
getent
Part of glibc, this will probably work on nearly every system.
Or, if you specifically want to query A or AAAA records.
getent ahostsv4 example.org
getent ahostsv6 example.org
Using Python2 Or Python3
Given this depends on glibc it is more of a alternative then another real solution.
Read more…