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>)

macOS sur linux

docker run -it \
    --device /dev/kvm \
    -p 50924:10022 \
    -e GENERATE_UNIQUE=true \
    -e DEVICE_MODEL="iMacPro1,1" \
    -e WIDTH=1600 \
    -e HEIGHT=900 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e "USERNAME=kro" \
    -e "PASSWORD=8606" \
    -e GENERATE_UNIQUE=true \
    -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \
    sickcodes/docker-osx:auto

podman

ajouter docker.io/ aux noms des images

macOS sur linux

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