The blog about containerisation, virtual machines and useful shell snippets and findings

Tag: docker

Remove old docker images one line

this will remove all the images ranged from 2.6.234 till 2.6.295

Docker logrotate

Actually you don’t need any logrotate for docker, as it has built-in

Centos 7 docker install

in case you do this under unprivileged used don’t forget to add permission to the docker.sock

Check docker container environment variables

install jq to the system with

zsh func for updating port from docker container

put this in .zshrc if you want to update `kube/config` with new port from kind container

oneliner run container by image name or container name

use your container name instead of kind-control-plane

Docker oneliner for image filtering and removal by pattern

put your image name w/o tags instread of myimage

Earlier Ctrl + ↓