docker

clean

tout

propre

docker system prune --filter "until=24h"

violent

docker rm -f $(docker ps -qa)
docker rmi $(docker images -q)

logs

tout

sudo sh -c "truncate -s 0 /var/lib/docker/containers/**/*-json.log"

container

truncate -s 0 $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)

podman

ajouter docker.io/ aux noms des images

MacOS

sudo podman run --privileged -it\
    --device /dev/kvm\
    -p 50922:10022\
    -v /tmp/.X11-unix:/tmp/.X11-unix\
    -e "DISPLAY=${DISPLAY:-:0.0}"\
    -e GENERATE_UNIQUE=true\
    -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist'\
    docker.io/sickcodes/docker-osx:ventura